@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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 27 28 29



Comments:

<0> Accurately you'd use an XML parser, inaccurately you may use regex.
<1> catalog/install/includes/application.php: ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); <-- <heart>
<2> hi guys, I need help, how can I turn off PHP for one domain in httpd.conf?
<3> HI!
<3> I CAN'T TURN OFF MY HEAD AND GO TO SLEEP! AHHH!
<3> ah well.
<1> dancingmonkey: lay off the caps
<0> Stormchaser: if contents =~ /<table>(.+?)<\/table>/; do something with $1; end;
<4> MikeH: Try joining #apache.
<1> kuja: you'd probably want to look at this: http://www.crummy.com/software/BeautifulSoup/
<3> I don't think that's the problem, it's the coffee.
<3> Canned coffee.
<5> so noone can help me with https and curl?
<1> what's https and curl?
<3> thats's what I was thinking
<3> Stormchaser, This was ##SQL earlier :)



<1> dancingmonkey: You asked PHP question in ##sql?
<5> i need to dump page from another server, i using curl for it, it's all ok with ususal http:// page, but gives me error on https://
<0> Stormchaser: Still too complex for pinpointing only a specific need.
<1> kuja: Have you looked at the examples?
<0> Stormchaser: Yeah
<0> Yet still too complex to pinpoint specific needs. Then again, Python is known for speed.
<1> kuja: Well... I don't know about you, but BS works fine with me
<0> Stormchaser: So you would use it to grab contents of a mere <table></table>?
<0> I wouldn't touch anything like that for something as simple, unless the underlying markup gets complex.
<0> s/under/inner/
<1> not that I *would*, but I *did*
<0> lol
<0> :)
<1> kuja: For instance: You can't pull a stunt like var = re.findall('<p cl***="datum">(.*?)</table>', content, re.MULTILINE|re.DOTALL)[0] in Python 2.3
<5> hmm
<0> Stormchaser: Why not?
<5> it's pythong channel?
<0> rofl
<1> because the 3rd option in re.findall does not exist.
<0> Python[g]
<6> The Pythong song. I like it.
<5> still, is ti python chan?
<0> Stormchaser: Except it does in 2.4, right?
<1> kuja: yup
<6> Is that a thong for men?
<1> I used BS on the python 2.3.
<1> </python>
<0> Stormchaser: The difference between Ruby and Python in regular expressions is that Ruby puts a higher focus on it. It really gives a more Perl feel (the thing Perl is best at, regex) and just as much natural control.
<5> better help me with curl https:// request
<0> exp[a]: When someone knows an answer they'll get back to you.
<0> Unlike me, not everyone sits here merely to ignore your questions, exp[a]. They just *don't know the answer*
<6> kuja: We're clueless, kuja is soulless. Got it?
<0> :P
<0> I don't know the answer, but ignoring people is a natural habit of mine :P
<5> lol
<1> [15:19:48] WALLOPS from lilo [i=levin@freenode/staff/pdpc.levin]: Hi all. We're experiencing waves of spam/trojan bots, mostly on #rubyonrails. If you see them on your channel, please let us know. <-- cool
<7> Say I wanted to find out if "value" is contained within an array somewhere, how would I do it?
<1> in_array()
<7> Thanks!
<1> bbl
<0> Stormchaser: Haha
<8> does any know how to increase the file size for the file_get_contents function ?
<9> i've got a bloody pain in my butt.
<1> Geo23: Add extra chars.
<1> NET||abuse: You should get out more.
<0> Stormchaser: http://kuja.zapto.org:3000 -- Feel it, you want to... :P
<9> why doesn't this output strpos=0 or anythign? $var = "abc12345"; echo "strpos=" . strpos($var,array(0,1,2,3,4,5,6,7,8,9,0)) . "\n";
<9> it just prints strpos=
<9> and that's it...
<9> i need to find the pos of the first instance of a number
<9> what am i doing wrong?
<6> NET||abuse: Cl***ic OO mistake. You're confusing a "has a" relationship with a "is a" relationship. ;)
<0> NET||abuse: STRpos()
<9> dj_segfault: eh?
<9> ohhhhh
<0> 'str' means what?
<6> NET||abuse: Sorry, bad joke riffing on your "pain in the butt" line, before you typed the other stuff.
<9> :) ok..
<9> hmm, if i used an array of strings with numbers rather than numbers perhaps?
<9> array("0", "1", "2"....etc



<5> where to find curl errorcodes? 8(
<0> ...
<9> ARRRGGGG.... now it does nothingecho "strpos=" . strpos($var, array("0","1","2","3"));
<0> php-bot: tell NET||abuse about func strpos
<0> NET||abuse: An array is not a string, *ahem*
<9> kuja: update php-bot int strpos ( string haystack, mixed needle [, int offset] )
<0> PHP5?
<9> not string needle
<9> yeh
<9> hrmph,,,, i'm getting grumpy...
<9> kuja: what do you reakon, is it possible to find the pos of the first occurance of any int in a string?
<0> regex, while capturing the offset.
<0> NET||abuse: Um, also. You didn't read the man page right on what needle is.
<9> kuja: problem is there's no way to return the offset direct from the regex...
<0> NET||abuse: php.net/preg-match
<9> kuja: ahhh, just re-read that bit... i get it now
<9> duh.
<0> It can be stored with the match.... read it.
<9> kuja: but i can't access that stored match in the same statement
<0> strpos('foo', array(1, 2)) is like doing strpos('foo', chr((int)array(1, 2)))
<0> NET||abuse: No, you can't.
<0> If that's a serious issue, PHP is not what you want.
<9> i'm working with a statement being executed in an arbitrary position in a field depending on a template, i need to be able to read this in in one ***ignment line
<0> What sort of template?
<0> Are you trying to use programming logic in a template? If so, BAD.
<0> Otherwise, there's no other way for what you want.
<0> That's as compact as it gets, preg_match()
<9> the template is a data definition for a report output
<0> Feel free to write your own function.
<9> hm, execution of the preg_match in a ? : style statement encased in parenthasis, then the value accessed from there !!!! ha
<10> could a cl*** legally be called Resource ?
<9> Lojo: i don't think soo
<0> Lojo: Yes.
<9> kuja: are you sure?
<0> kuja@shugotenshi:~$ php -r 'cl*** Resource {} var_dump(new Resource());'
<0> object(Resource)#1
<9> i thought things like file pointers and database handles, any kind of external stream was a resource
<0> No, I'm not sure. I typed that all manually. :P
<0> NET||abuse: That doesn't mean they use a cl*** called Resource
<9> :P
<10> in scite, Resource turns purple
<9> wow, kuja: thanks for letting me bounce the idea off you for my problem, thanks.
<9> sorted me out big style
<0> Heh :P
<0> Yeah whatever, no problem.
<0> Lojo: That's because scite ****s ***.
<10> heh
<10> it's far better than notepad :)
<10> what would you recommend?
<6> JEdit
<0> My recommendation is biased, stating what I use may cause a holy war.
<0> Uh oh, dj_segfault said it.
<6> Let loose the dogmas of war!
<6> and there shall be no other editor besides me.
<10> since when did table names become case sensitive?
<0> dj_segfault: http://kuja.dotgeek.org/screenshots/jedit-ruby.png -- My highlighting looks perfect now :D
<6> Nice. Wait, I thought you were from TX. What language is that comment in?
<0> What comment?
<6> Line 10
<9> what???? preg_match($var, "/[0-9]/" got Warning: preg_match(): Delimiter must not be alphanumeric or backslash
<0> dj_segfault: Read the code, look at what you think it might do :)
<0> NET||abuse: For ****S sake, read php.net/preg-match
<6> kuja: Got it.
<0> You've got your arguments mixed up.
<0> dj_segfault: And I'm not from TX :P
<0> I'm from Korea :S
<9> i'm increadably tired
<9> sorrrry
<8> Stormchaser: what do you mean add extra chars?
<0> You're number 32094723042 to say that.
<6> kuja: Oh, I thought you were from the US, and currently in Korea, and moving back. Sorry.
<0> :)
<6> kuja: But weren't you talking about coming to the US?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

nzbperl howto
centos 5 [Errno -1] Metadata file does not match checksum
#osdev
perl argv argument count
#math
gaim firewall unblock
daveman davewoman
debian xbase-clients unmet
#php
No Fedora Core CD was found fc6



Home  |  disclaimer  |  contact  |  submit quotes