| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Comments:
<0> Raevel, how could mysql_real_escape_string recognize the connections character set without a connection? <1> romanb does it need it? php.net says it only escapes 6 chars <2> Wolfpaws: yes at the moment, which is why i made sure that the file extension is that of an image file. the next thing i need to do is make sure that the url that gets fed into it is from my domain but i dont know how to check for that <2> i need to strip the "mydomain.com" from it somehow and check that it's the same as my website, or if its absent then its relative to the site root anyway <0> Raevel, yes mysql_real_escape_string needs a connection resource. if you dont p*** one as the second parameter the last link opened by mysql_connect() is ***umed. <0> Raevel, its stated in the documentation under "parameters" <1> romanb i know the function itself needs it, but why does it need it to escape the chars? <0> Raevel, because there may be differences in how some characters need to be escaped in certain character sets <1> ok fair enough, php.net didnt say that though, it only said that back-slashes were prepended <3> 467 online chatters, wow O_O <4> hello , is there any php function that checks if a function is already called or not <3> Anyways, what FOSS lisence is PHP release under <3> The website doesn't make the clear. <3> And, is the bundled Zend engine also open source? <4> hello , is there any php function that checks if a function is already called or not <3> mephistopheles: Well
<3> you could set a global var <3> $function_run = FALSE; <3> set it to true <3> then check that variable. <3> AFAIK, there is no function_runned() thing in PHP. <4> mozillaman, thanks a lot <3> np <3> Noone knows what license PHP is under? O_O <5> mozillaman: the php license <3> got it <5> http://www.php.net/license/3_01.txt <3> license.txt in the tarball it seems ;) <3> ahh <3> itrebal: OK, and what is Zend Engine under? <3> same? <5> mozillaman: the Zend license, i beleive, but arn't sure <3> gah <3> Why can't they just use the GPL? ;) <5> http://www.zend.com/products/zend_studio/license_agreement <6> itrebal, that's the license of zend studio ;) <6> mozillaman, http://cvs.php.net/viewcvs.cgi/ZendEngine2/LICENSE?view=markup&rev=1.10 <5> woops ) <5> it was the first result under a 'license' search of zend.com, i didn't care what it was <6> heh (: <3> itrebal: :P <3> OK, thanks for the info :) <5> gah! speaking of which, a project i'm involved in is violating the PHP license agreement <7> heh <6> itrebal, you use PHP in it ? :) <5> yea <8> how can I list the attributes of an object <0> EvilGuru, get_object_vars($object) or simply cast the object to an array (array)$object <9> margin: 0 5px 5px 5px; <---- which is the left and right? <5> xxxx: thats for #web, not ##php <9> k <4> hello , to make a input sql string secured which function should i use ? <4> mysql_real_escape_string ? <4> or striplashes <1> the former <5> mephistopheles: IIRC, you asked this yesterday - and mysql_real_escape_string <4> itrebal, :D , just for confirming <4> hello , any one knows any cl*** that highlight syntax ? <10> what <4> i mean the cl*** that highlight syntax like it is in pastebin <11> hey, if i include like 100 cl***es (i.e MyCl***.php, MyOtherCl***.php,.... ) via require_once, but never use them. will this cause any noticable overhead. or is the zend optimizer intelligent enough to ignore those that are never used within the file ? <0> it is an overhead but not that much as many people think. you can check it out by yourself with a good profiler <0> but nevertheless you should evade including files you dont need <11> well, sometimes coding convenience is better than a bit of overhead <5> Jax: http://us2.php.net/manual/en/language.oop5.autoload.php <5> Jax: look into that function <11> itrebal yeah i saw that <11> itrebal kind of a pain now.. i already set up all my cl*** constants, i.e require_once(CL***_DATABASE_WRAPPER); <11> and like 50 more <11> and no way to really link from cl*** name to the constant <11> expecialyl because i also got package names <12> so guys, I've started to document the zend engine <7> ... <10> haha <13> hello, i need to create a pdf with some vector graphic embedded into it (format doesn't matter it but it should be in cmyk for color separation) for a printing company, a first glance at google pointed me to imagemagick and (e)ps any better hints on that (gd looks nice but from what i've read it can only do pixel graphics)
<11> gah need some help thinking here... <11> so i got my Locale cl***... now the question is.. should i really be p***ing this to ALL the cl***es that are Locale dependant? <11> or should i have this on a ApplicationDriver instance <11> i.e something higher up, which i can always access.. <11> but then i'd have to p*** that between pages via sessions <11> and then just let the locale dependant cl***es access this object through $_SESSION['ApplicationDriver']->getLocale() <14> hi all, is there an equivalent to the unix "indent" beautifier for PHP code? <15> ok, this is a nub question, but how do i use LIKE %?% in a pear db prepared query? <15> each way i try gives a syntax error <16> !+pear <17> [PEAR] PHP Extension and Application Repository, a framework and distribution system for reusable PHP components. ##PHP does not support PEAR, please see http://pear.php.net/support.php. <18> I have to parse a file, I have 5 times something like this: swapElementText('resultlink_1','<variable>', "<data>"); ... What would be the fastest way to parse this efficiently ? thanks <16> how about a loop? <5> wouldn't it be sensible to have the pear factoid mention '#pear' ? <5> shadfc: #pear - try there <15> itrebal ahh, thanks <16> itrebal: I wouldn't know... It should write everything in that link <15> didnt realize there was a separate channel <16> dammit <16> the 'support' link talks about "#pear" in efnet, tho <19> hi, how can i include html from another server in my page? include('http... gives me: URL file-access is disabled in the server configuration) how can i turn that on in an htaccess file or ini set? <20> JowWSmith, you want to include just an .html? <19> no, a php page that would run on the other server and show the output here <16> JowWSmith: You want fopen_wrappers and DON'T INCLUDE EXTERNAL FILE!!! <5> JowWSmith: if you include the page, then they can put PHP on there to be executed by your server - DO HNOT DO THAT! instead, use file_get_contents, use the file wrappers, NOT include or anything like include <19> ok how can i do it then? need to run the script on the other server and need to have the result printed on the page <19> file_get_contents gives the same error <16> itrebal: Didn't I just said that? <5> readfile file_get_contents... <5> Wolfpaws: yes, i was explaining why <21> woof <22> http://pastebin.com/741220 <22> line 17 <5> Stormchaser: i figured one should know why they're not doing something <22> getting a T_STRING error <21> fit4lfe: line 11... Get a sutable editor. <22> a what editor <21> non-notepad or wordpad <5> anyway, better one <21> should be "suitable" anyways <5> right <22> I use crimson <22> I'm on a windows box right now <5> Emacs is crossplatform <21> fit4lfe: Then turn the syntax highlighting on <22> k <22> what about that error though <16> fit4lfe: I told you where to look... <23> Can someone help me with a regEx that strips all whitespaces (Except " ") from a string? I just want it on _one_ line <24> good morning everyone <24> anyone here? <25> i'm struggling with server-side form-validation... this is what I want: if form-field blank, then echo something, and then exit. i've tried with is_blank and preg_match, but it's not working. suggestions? <24> try if (isset($_POST['user']) { process_form()} else {echo "you didn't fill in your username"; } <24> missed a } there after the ['user'])) <----- how it should be <24> anyone for some socket help?:P <26> hi <26> excuse me.. some weeks ago, im banned <26> why? <25> pilot|kof: thx, i'll try it :) <24> yw <27> IS there sumilar syntax for: foreach ($multiDimArr as list($a, $b, $c)) {} or do i have to foreach ($multiDimArr as $tmp) { list($a, $b, $c) = $tmp; } ? <24> no idea sorry zimnyx <25> pilot|konf: tried to sort ort the }, but i don't get it... <25> s/ort/out <24> yeah got what you meant want to post your form real quick and I'll attempt to help you out with it? <25> ok. is there a flow-channel? <24> you can pm it too me <28> evening <28> I need some ***istans in debugging PHP5 running as a FastCGI module <28> http://pastebin.se/2866 <29> I cannot p*** variables from an index.html script to an included script. I've tried globals and sessions. The variable will not p*** even when it is loaded into a session. I'll pastebin the code if anyone is willing to help. <30> nlindblad, USE="php fastcgi" emerge lighttpd, should help
Return to
#php or Go to some related
logs:
ubuntu how to enable the mysql extension #web debian glib *** Could not run GLIB test program, checking why #linux #css ubuntu broken filter #qemu firstfinancialservices #python make menuconfig amd geode
|
|