| |
| |
| |
|
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 25 26
Comments:
<0> Pollita: yeah, i don't even need a woman for those anymore <1> Jymmm: i heard that cl*** doesn't work on most systems <2> (__) <2> (oo) <2> /------\/ <2> / | || <2> * /\---/\ <2> ~~ ~~ <3> itrebal do you know why? <2> ...."Have you mooed today?"... <1> Jymmm: nope <4> prophile, htmlHeader is defined in an included file at the top of the script... likewise, "print htmlFooter;" works for some reason :-/ <5> stevo_inco, check if it's defined with php.net/defined before you output it and then tell me that's not the problem :P <4> Will constants work from included files? Or is there some rule that wont allow constants to work outside of their .php file...
<3> ___ <3> (\_/) <3> (^_^) <3> (")(") <5> constants work once they're defined <5> but it's probably not defined <5> for whatever reason <5> check with defined() before you output it <3> itrebal ironic that it works on his site, but nobody elses. <1> Jymmm: indeed, hehe, he's running a different version, of course <6> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=134156 <-- heh heh heh :) <4> prophile, I added the check into the code, and then it started working, but the code I added to check it never outputted anything. <4> How odd. <5> *shrug* <7> crap..two phone calls and now the code i need is lost in the scroll <8> grep <1> grr... my script is borked. <9> "else if" vs "elseif"? comments? <1> i use elseif but if you come from C else if is probably easier to get used to <6> peritus: no difference. <9> why introduce "elseif" at all, when else if does exactly the same? <6> BAh... MPlayer 's CVS is badly borked... The seek position is broken. <10> if I have $f = 'name' <10> can I do this: <10> if(isset($inputfields[$$f])) $this->$$f = $fields[$$f]; <10> in a cl*** object. <10> and have $this->name set to the fields array's 'name' value? <1> myconid: you shouldn't use variable variables <6> that would be logically incorrect <6> Erm. <10> sorry.. <10> if isset $fields <6> myconid: Have you tried it? <6> myconid: Why are you persisting on (ab) using variable variables? <6> !+var vars <11> var vars is http://php.net/manual/en/language.variables.variable.php, but by using that you probably have an error in your logic... You should use arrays instead (http://php.net/array) <10> Stormchaser: ? <6> itrebal: Maybe 5 years ago... now it's overdriven with subversion <1> Stormchaser: i was referring to how the latest and greatest is allways from CVS :) <6> lol <12> yay svn <10> http://pastebin.com/547388 <13> hello! <13> is there something which is the opposite of htmlspecialchars? i want & to become &, for example <3> itrebal: FYI... http://www.ocr-research.org.ua/list.html ~~~~~ <6> Hal9002: html_entity_decode <1> Jymmm: i'm going through it now, thats interesting <13> Stormchaser: thank you <6> myconid: What do you gain with this: $this->$$f = $inputfields["$f"];? <14> hello. <14> I'm using ldap with php, and I'm getting resource id #2 as the error. <14> where could I find out what that means? <6> resource id can't be the error... <1> Jymmm: so... what *is* a good captcha? <14> Stormchaser what is it then? <3> itrebal look at the ocr demo and the teabag thing <1> Jymmm: ok <6> tuxtheslacker: a *resource*... A valid connection handler. <14> okay, so that means the connection is good? <6> yes
<14> or ?? <14> oh okay. <15> is there a way for PHP to read the value of a disabled form field? ie. [HTML] <input type="text" name="name" value="cube" disabled> ... "cube" does not appear in $_REQUEST['name'] upon submit.. <6> the key figure is *disabled* here... <16> can i return a reference to a variable? <6> gelignite: try it. <15> would I need to use javascript to re-enable the form field on submit so it'd be posted to PHP's $_REQUEST? <14> hmm, stormchaser, do you think you could take a look at this and tell my why it breaks? <6> cube: You might want to use the readonly flag in the input name. <14> I've never used ldap before, and I need to get onto our schools for this. <6> Tux_Paranoid: Sorry -- Never delt with ldap <6> Er... tuxtheslacker <14> is there anyone in here that could help me out in dealing with the ldap? <15> Stormchaser, what's the readonly flag? <14> pastebin.com/547426 <6> s/flag/property <14> http://pastebin.com/547426 <14> that's better. <15> Stormchaser, don't quite understand. is it part of a html form field ? <6> cube: yes. <15> Stormchaser, as far as I knew.. the r/o flag is "disabled" <14> Stormchaser: do you think you could chekc that out and see if there's something wrong with the syntax? <15> but then it seems that PHP doesn't pickup the field.. as if it was never submitted <17> is there an easy way or an easy function to do something just once in a loop? <6> no it isn't... Disabled is disabled, readonly is readonly <15> ahh groovy <6> cube: Anything maarked as *disabled* is not posted to the request, so it doesn't exist. <18> gary: set a variable=1 before the loop and blank it after you've done what you want to do only once. Then make the action conditional. <17> cool, so there is no built infunction, just a simple flag :D Thank you! <6> while(true) { /*your stuff here */ } <6> gary: If you want the function to exit the loop after first call, use return <19> Hi <15> Stormchaser, too bad I can't read only checkboxes & selects ;( <19> i got a mysql_error with No error-nr... :( <19> what should i do? <19> i dont get the error :( <20> how would i replace all links on a page with a common target string <6> cube: Mngh... ALL the data, that you send to user can be tampered with... So even with those 'readonly's and 'disabled, one can easily modifies a form and screw up your dats. <20> if i have the source in a variable <6> Marskuh: Mysql error 0 is _NO ERROR_. <20> i need to do..<a href="****"> with a regex or something <17> Do you think this looks quite smart and clean? <17> http://www.garyhooks.co.uk/index.php?page=projects <17> I am making a personal website, but also for the use of potential employers to view so I want examples of my work to be on it <8> gary, #web <21> gary: nto sure about the aliasing on the title. <8> I'd recommend using another font. <19> stormchaser: but wth is it... the connid is correct... but the query_result isnt valid <8> Even if you meant to use TNR, it looks like the default, heh. <6> preg_replace ('#<a href="(.*?)"#','<whatyouwanthere>', $string); (or something) <19> Stormchaser: i got an empty query_result but the query is correct. <14> hey, can someone give me the syntax of searching an ldap db? <6> Marskuh: Well... Then you're p***ing the wrong variable to the query... <19> Nope <6> Er... wrong or empty, that is) <19> the query is correct <6> Marskuh: Pastebin the code. <17> jonnay: you mean the way it says "P***ion Records" rather than www.p***ion.... or whatever? <19> Stormchaser: http://pastebin.com/547465 <21> gary: actually, i was referring to the "garyhooks.co.uk" title. The aliasing that happens because of the interlaced background. <17> oh I see. <17> jonnay: I used gimp to create it, and graphics is my worst worst area really, where as development is my best. I'm not sure how to get rid of the jaggyness. It is anti-aliased, not sure what interlaced background is? You mean stripey? <17> sorry for my lack of knowledge <1> whats the function to get an images mimetype? <22> itrebal: so you can tell what kinda image it is? <22> itrebal: oh oh sorry <22> misread <22> thought you asked what they were for <23> how did i initialize an empty table? $table = []; is an syntax erro <1> cvncpu: i understand :) <1> or in generall, and what a files mimetype is? <22> rzei: I didn't know you had to initialize vars in PHP <24> you don't have to, it's a good idea <25> You don't, strictly speaking. It's sometimes prudent to do so, however.
Return to
#php or Go to some related
logs:
#perl foy bloxsom ubuntu -lasound error osx dockbar for gnome PyDateTime_IMPORT arris rndis azureus suse gbv smart parport0 udev suse #javascript #ubuntu
|
|