| |
| |
| |
|
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> G'Night <0> doh too slow <1> Drakas: Still not clear exactly what you mean. Do you have any code? <2> i've finished :) <2> Elazar: something like object() { array(object(){"item"=>"xx"})} to array(array(array("item"=>"xx"))); <2> here, Elazar http://pastebin.com/662692 <3> hi, i have two cl***es, Foo and Bar, Bar extends Foo, i try to use a function that belongs to Foo in Bar with $this->function_in_foo but it gives me an error Using $this when not in object context? <4> Could a couple of people go to my site http://www.sesstreets.com/ ? I want to see if my script works. <3> works for me <4> 68.99.185.79 <4> right on the money <4> firefox too? <3> yea <4> xp <3> nope <0> this isn't #betatesters
<4> I just wanted to see if the script executes. <4> Its nothing you guys can see...its a background logger thingy <5> Can some one tell me regex for Allowing only number and not alphabats <3> [0-9]+ <6> Or !([a-z]) <7> preetish: /^\d+$/ <8> does the pachage for mysql for ubuntu does it configure into php or no <9> great question to ask in #ubuntu <8> using ubuntu dapper drake <2> using xml parser, the CDATA is being evaluated :/ <2> how can i replace all & to & inside <a href="<HERE>"></a> ? <9> Drakas: str_replace ? <2> fyrestrtr: ok, imagine if there's <a href="something&somethingelse">My » New Space</a> <2> so wtf o_O <2> such lame answer <2> im asking for preg_replace syntax <2> because if you str_replace on what i showed, you'd get <a href="something&somethingelse">My &raquo; New Space</a>, which is not desired <9> what was your question <9> "how can I replace all & to & inside <a href="<HERE>"></a>" <9> did you mention anything about "asking for preg_replace syntax" ??? <0> Drakas Someone is trying to help and you mock them?! <2> nto really helping :| <0> Drakas ungrateful bastard <9> I'm not a freakin' gypsy I can't know what you want to do, learn to ask better questions. <2> imagine if you've got feeds from other websites, that don't have valid XML <2> lol Jymm <10> I don't think he was joking. <2> CWhiz: i know <2> =/ <2> <a href="something&somethingelse">My » New Space</a> >> <a href="something&somethingelse">My » New Space</a> <0> Drakas: When someon offers help, you dont tell them to **** off. <2> ok =[ <2> i was just stressed ;/ <2> sorry <9> we are all stressed man <0> Drakas Then wake away from the computer for 15 minutes, have a drink, smoke, wake off, whatever, but dont be rude like that. <0> wack <2> ok <0> NOBODY has to help in here, nobodys being paid. <0> and if they are, I want my 1% <10> Just kidding. <0> CWhiz I know where you live! <2> i'll just google :) <3> how do you have a variable in the function name again.. somethin like func_{$var}(args) <10> Axsuul: http://www.php.net/manual/en/ref.var.php <10> doh <10> wait <2> ok, i need to wake up now <0> variables.variable <11> hi, can i declare the member-method bodies outside of an cl***? i tried with test::newFunc($a) { print $a;} but that isnt working <0> php.net/variables.variable <0> less typos <0> $$ <10> Axsuul: http://www.php.net/manual/en/functions.variable-functions.php <9> hyksos: I don't think that's possible. <11> fyrestrtr :like in c++? then the body of the cl*** is so overloaded <9> hyksos: there is no concept of overloading in PHP <9> hyksos: oh, nevermind. I see what you mean. No, you still can't do that, like you can in C++ -- you are talking about having a virtual cl***, where you define the bodies of the methods in one of the derived cl***es; or defining the method bodies after the cl*** definition -- neither are possible in PHP afaik. <10> Is that an abstract cl***?
<10> Because you can define abstract cl***es in 5. <9> CWhiz: could me, I'm not too sure on the terminology -- haven't done C++ in a long time. <9> s/me/be <10> fyrestrtr: I'm taking a cl*** (no pun intended), but it's not really helping ;) <9> cl*** in C++ ? <10> Yes. <9> probably you are right then, since my C++ memory is very rusty. <10> virtual cl***es are like subcl***es, right? <10> hyksos: See if this is what you're looking for - http://www.php.net/abstract <9> I've confused virtual members with abstract cl***es lol <3> anyone know of a better method of counting how many times a file has been downloaded instead of sending headers? <6> Axsuul, mySQL database <6> Axsuul, Create a file with number of times, and rewrie on each download <3> Daskies: what would the method be to count though <6> I'd just have a php page they have to 'hit' before they can download <6> On the php page change num-of-times.txt to add one <3> cool thanks <11> fyrestrtr :like interfaces, but then all must be public, thats also not what i really want http://www.php.net/manual/en/language.oop5.interfaces.php <12> !+g1 <13> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question <14> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question <12> !quit <12> Stormch[a]ser: Fixed <12> Jymm: Not my hardware <0> TML ah <0> TML Man, the stupidity in here and no php-bot to save us! <0> it was hell I tell ya! <12> *shrug* stormbot was here, wasn't he? <0> TML Yeah, but he's outdated. Stormch[a]ser needs an updated xml file from you. <12> I thought I made him a webpage <0> TML Maybe, but he was saying he needs to get a updated XML filr from you. <0> Just fyi... stormbot responds differently to !+ than php-bot does. <11> i got a var test in my cl***, now i want to build a string with: $txt = "hey=$this->test"; but then i get back that it is expecting a string not a var? <11> i tried with '' {} but nothing worked <12> Jymm: I know next to nothing about stormbot <15> hi <0> TML: I understand, just syaing it's different and not as easy to to be useful is all. <15> select * from wines where variety ='xyz' or 1 = 1 ; ' => will give error. because of the last quote ' <0> TML But, not bad for a standin =) <12> hyksos: "{$foo->bar}" <11> http://rafb.net/paste/results/k32h0I97.html <11> TML : it complains about line 5 <12> hyksos: "{$foo->bar}" <12> Not "$foo->bar" <11> TML: but i cannot use "" within "" ? <11> $conn = "name="$this->dbname" host= ..." or how? <12> hyksos: You have "$foo->bar" <12> hyksos: Use "{$foo->bar}" instead <11> ok i try <16> Or string concatenation <11> TML:thanks <17> I'm testing sql injection on mysite <17> $vari=$_GET['vari']; <17> $b= "SELECT * FROM wines WHERE variety = '$vari'"; <17> echo $b ; <17> very strange <17> that php automatically avoid sql-injection : <17> the output is : SELECT * FROM wines WHERE variety = 'lagrein\' or 1=1;' <17> when the variable i entered is : lagrein' or 1=1; <17> I'm testing sql injection on mysite <17> ;) <11> now i got that and it complains about unexpected string? http://pastebin.com/662803 <18> snow_ru <18> you probably gpc_magic_* on in your .ini file <11> when do i know what type it is and what tpe it needs <18> don't rely on that for your sql injections <17> magic_quotes_gpc=On, yes <11> must i cast something <11> can i cast? <18> hyksos: does this work: http://pastebin.com/662812 <19> My ' and " from POST data are escaped (like \' and \") eventhough I've put "magic_quotes_gpc = Off" in php.ini, and though phpinfo() (http://johannaost.com/phpinfo.php) says magic_quotes_gpc and _runtime are off. Any ideas? <18> Spanko: did you try to get the value of your ini var in your code, where you need it?
Return to
#php or Go to some related
logs:
resolveconf gentoo javascript undefine a function #lisp #fedora #perl directFBError getinputdevice DIDID_MOUSE #openzaurus #web yassine satori Fedora resolv.conf generated by NetworkManager
|
|