@# 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 30 31 32 33



Comments:

<0> Can anyone tell me the regex to split unix folders? I'm using preg_split to split each folder into an array. So far everything i've tried is not working. Thanks in advance.
<1> to split unix folders? can you expand on that?
<0> PktLoss: say i have a dir, "/some/folder", i want to split it into some and folder.
<2> can i crate files with php?if yes ,than how can i do that?
<3> Brendon, regex prolly isn't the right tool.. try http://php.net/explode
<1> cant you just explore with /
<1> (explode)
<0> thanks i'll try that.
<4> Hello everyone! Is there a way to check if a string is UTF-8 or not? I've tried a few suggestions on php.net but they dont seem to work (Even latin1 strings are interpreted as utf-8)
<1> I'm under the impression that determining the charecter set of a given string is very difficult to do accuratly
<2> can i crate files with php?if yes ,than how can i do that?
<5> file_put_contents() ;)
<5> and yes of course
<6> what function to use if I wan't to make a case-insensitive match on two strings?
<7> Oy.. Why does PHP's imap_* functions ****, and have to use some annoying {remote_name} crap with it? heh
<8> eml preg_match works



<8> preg_match('/string1|string2/i',$string);
<8> should work
<6> $string would be what then
<8> HMMMMMMMMMMMMMMMMMMMMMMMM
<6> sorry =
<6> =) php.net it is
<6> if ( preg_match ( $_POST['usr_name'], $row['usr_name'] ) ) like this? (also, can I do an if like that on an array?)
<9> err why use a function for such a basic comparison? what not if ($a === $b) { ... }
<9> ?
<9> don't make things more complicated then they need to be :)
<6> well that wouldn't be case-insensitive wouldn't it? (question.)
<10> eml: how about strtolower($string) == strtolower($string2)?
<6> ok then :)
<10> Kids these days... No imagination, I tell you... NO imagination!
<6> thanks
<10> hi, lig!
<6> =))
<9> odd, i always thought === was case sensative
<10> ...
<9> == was not
<6> oh, sorry
<11> eml: didnt you ask that same questiont he other day?
<6> Jymmm, no
<6> Tweakin, thought you said ==
<11> eml: Ok, musta been some other dumb***
<6> and it was a question
<6> Jymmm, thanks
<11> eml np
<9> eml; it appears if (condition === condition) {} is case sensative
<6> ok, the strtolower way then
<12> Tweakin: Sure it is
<9> not needed, === compares case sensativity
<10> Tweakin: Please read the php.net/operators
<12> == checks values, === checks values and types
<9> so no need to make them both lower
<6> so you mean case-insensitive?
<6> o.O
<11> Tweakin you are WRONG
<10> ow, ow, ow. My head hurts
<9> eh, i tested, it appears case sensative.... but the manual doesnt specifiy
<9> there is of course a great chance i am wrong though :P
<10> ...
<6> Tweakin, you mean insensitive+
<10> oh, ffs...
<9> heh, my head officially hurts now too, i think i need to read up to the original question
<10> Tweakin: my head still does when I read your BS.
<6> yeah, I think you should.
<9> really dude, this 2 minute irc conversation hurts your head that bad? I think you need a nap
<6> Jymmm, thank you, I think
<11> eml I was kidding when I called YOU a dumb***, not so for others.
<6> ok.
<9> and yes... i originally thought he said case sensative, i read to fast in my attempt to help someone
<11> Tweakin: Ok, so now for clarifiction of your mistake... what is the purpose of === compared to == ?
<11> Tweakin you have sixty seconds
<13> oh oh
<13> pick me



<13> i know :-p
<13> lol
<11> eml are you Tweakin?
<6> yes
<6> :(
<6> ehm, dude. :[
<6> you're scaring me :P
<11> Tweakin come on now, what is the correct answer?
<11> learn from your mistakes
<11> 30 seconds left
<14> hey Stormchaser - sorry I took so long - someone called me away
<14> hey Jymmm
<11> lig =)
<14> LOL
<15> lol
<16> awwwwww come on
<15> ye, sure ;)
<17> what would be an easy way to eliminate characters which might cause trouble in the file names while saving them ?
<17> rare some funky characters can cause problem, depending on the fs
<17> rarely*
<11> lig: drain bamage... I shipped it off w/o photographing it. It's been a rough couple of weeks.
<14> np darlin'
<11> lig I have other if you want to see them?
<14> definately
<11> lig http://static.flickr.com/34/101009611_3962bf3dfe.jpg
<14> oak?
<11> lig No, Mangaris
<18> what command do i need to do to download a webpage?
<18> i tried fopen/fread cause i saw that in an example
<18> but it didn't work
<16> to "download"?
<18> yeah, to fetch, to get..
<16> wget ?
<16> =]
<18> sure but in php
<16> p***thru('wget blah.com');
<16> ?
<18> i want to store it in a variable
<16> fgets I think
<16> or file_get_contents()
<18> so i have to do fopen ($url, 'r') ?
<18> cuz that doesn't seem to be working
<16> php.net/filegetcontents
<19> How do I include a file at runtime?
<19> That is, a script running forever includes a file, and that file's content might change during the scripts execution...
<18> why doesn't this work?
<18> $web = fopen($url[0], 'r');
<18> $webdata = fread($web, 500000);
<20> *** Silivrenion has gone away (Reason: Away for a while)
<6> is_numeric ( $_POST['usr_tz'] ) ? $fld['usr_timezone'] = $_POST['usr_tz'] : ; <- not valid?
<19> eml: I think a $_POST can never be numeric.
<19> afaik in_numeric checks the type of a var, not its content.
<6> hmm, good point :]
<6> humm, what function to find out if the content of a string is a number then?
<21> is_numeric()
<6> so.. then it was valid?
<6> except for the ": ;" part, I think
<22> how can I run phpmyadmin on a page that's not online yet
<22> ie I tried C:\program files\apache grou\apache2\htdocs3\phpmyadmin\index.php
<22> instead of running it, it just opens it
<22> and there is no "address" for it yet (as I am running 3 webpages on 1 server, local ip goes to another one of my pages)
<6> http://pastebin.com/574008 how would you solve something like this?
<6> or, how did I fail? the count-part probably
<19> still, noone knows how to re-read an included file during runtime?
<23> Hey everyone. Have a small problem that I can't figure out. When I inlcude a plain text file, the character "1" is appended to the end. Any idea why that would happen?
<6> ok, I fixed it, $i=1 instead if $i=0
<24> is there a way to check if a certain index exists in an array, that won't throw a warning ?
<23> Anyone any ideas?
<25> SirFunk: if(isset($var))
<25> whether $var is a simple variable or array index


Name:

Comments:

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






Return to #php
or
Go to some related logs:

sli on master and sli on slave
#fedora
brightmail /etc/hosts
R_X86_64_32S local symbol kdelibs
#gentoo
xubuntu change screen resolution
#web
ubuntu alien not found
trackpad nipple mod
x264 fedora install



Home  |  disclaimer  |  contact  |  submit quotes