@# 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



Comments:

<0> Ah
<1> ???
<0> oops, wrong side of the conflict
<0> heh
<2> krisp: If you're talking about like in Perl, no.
<0> kuja: somebody needs to kick Kim-Jong-Il in the balls for hoarding all of the international aid
<2> krisp: var_dump((string)($foo || $bar)); // this will be the output
<0> er, is that how you spell his name/
<3> http://chimerawebcast.net/images/ashley1123.jpg <-- my g/f
<2> robert_: lol
<3> who i'm ignoring right now
<4> $check = $total%11; is this the correct syntax for modulo/
<2> Mm... women. All the same! -_-
<5> http://naughtyrussianhousewives.com/pics/21241241.jpg <-- my g/f...
<2> JaredCE: Yes



<3> yep all the same
<1> kuja shame - so what will what I wrotd do?
<6> cyphor: need a bf?
<2> krisp: It will convert the resulting boolean to a string. ((string)true === 1) === true
<3> robert_: you can have her right now shes being a bitch
<7> hah, I was waiting for that.. no, I 'need' nothing, but in a few years I'll consider a g/f..
<2> krisp: ((string)false === '') === true
<2> err
<2> === '1'
<1> shame :(
<1> wish it was like perl :)
<0> lol
<2> krisp: echo $foo ? $foo : $bar;
<0> AfroTurf: where's she/ lol
<8> krisp: i just wish ||= was in PHP
<3> haha
<2> Then I learned it was a Perl thing
<5> I want to learn Ruby...
<5> Or ASP.
<2> will_: Ruby's great, was definitely worth the time
<0> will_: you learn asp, and I will personally murder you. :P
<1> that's cool
<1> echo $foo ? $foo : $bar; works a treat - though what exactly does it mean
<0> asp is more evil than .net, imo
<5> robert_, :(
<5> Oh, .net I mean then. Whatever the latest MS craze/buzzword.
<3> lol
<0> lol
<8> krisp: i just hate typing out $foo = $foo ? $foo : ...
<3> that alternates something
<5> robert_, That's no way to live... don't be hater.
<1> what does it actually MEAN though>?
<3> i use that for bgcolors
<1> something = foo if foo is set, else if foo is not set it equale bar ?
<3> krisp: how would you do 3 instances
<1> AfroTurf I only just learned about it!
<0> will_: I have to put up with microsoft's bull**** for a living- why would I run their crappy, half-***ed operating system for recreation, other than to see how long it takes an XP box to crash on a system with a buggy ACPI implementation
<3> $foo ? $foo : $foo ? $foo : $foo .... lol
<1> $foo ? $foo : ($bar ? $bar : $lol) ?;
<1> I believ
<1> e#
<9> hello
<5> robert_, Uh... I don't know. MS products works very well for me :)
<5> /version :)
<1> nothing beats apache on windows :P
<0> lmao
<1> (apart from apache on everything else )
<2> krisp: ``echo $foo ? $foo : $bar;'' translates to: if ($foo) echo $foo; else echo $bar;
<10> krisp: lol
<8> krisp: see you have to look deeper into the function. foo is really concerned about his self-image, what its existence really means, and is pondering deep questions like "what is life?" the $bar symoblizes man's suffering
<11> anyone know of any decent way to check for a string on PHP and see if it has any illegal characters?
<5> I didn't say I ran Apache on Windows ...
<3> wow, i laghed soo hard at that statement, i almost sharted
<12> "illegal characters" are defined how?
<11> earth: spaces, !"$#%()#=%)(/, etc
<11> anything that's not a letter or number or "_" or "-"
<12> I would virtually always use preg_match
<12> regex is your friend.



<8> GhostManZero, read about character cl***es in regexps
<11> regexps?
<11> is that on the PHP docs?
<12> preg_match
<11> sorry, i'm still kinda n00b at this... ._.
<12> if (preg_match("/[^a-zA-Z0-9_\-]/", $string) ) { print "I found characters other than a-z,0-9, underbar, and dash\n"; }
<8> GhostManZero: http://www.phpro.org/tutorials/Introduction-to-PHP-Regular-Expressions.html
<0> so, you bought xchat for windoze
<0> so?
<8> GhostManZero: PHP docs are here: http://jp2.php.net/manual/en/ref.pcre.php
<12> yeah, reading the docs is good. you will thank yourself many, many times for having a basic knowledge of regex.
<11> earth: thx
<11> http://pt.php.net/manual/en/function.preg-match.php rigth?
<11> hmm.. i wonder why is there pt before php... o.O
<6> allo kainam
<0> Ooooh
<0> I love Tetris
<12> it's just one of their mirrors.
<6> allo Jake
<3> krisp: that does't work :( $foo ? $foo : ($bar ? $bar : $lol)
<13> HellMan, hello shai
<11> http://www.deviantart.com/view/31640502/ -> for you guys to laugh a bit about pokemon
<11> we all shouldnt be coding all the time, right? some distraction is nice too!
<1> AfroTurf meh :)
<14> AfroTurf: works here
<11> if (preg_match("/[^0-9]/", $GAME_UID) )
<11> that'd see if there's only numbers on that string, right?
<8> GhostManZero, that would return true if there was something other than a number on that string
<11> dranger: that's what i want to see
<11> thx
<15> I'm trying to create links using '<a href="warticle.php?title=',$row[0],'">read more </a><br>'; but when I try to extract using echo $_GET['title']; I get nothing and $_SERVER['QUERY_STRING'] seems good
<16> digitalDude, you are using ',' while it should be '.'
<17> hi.
<15> T-Start thank you :)
<11> on mysql, after doing a mysql_query, how should i know it did the query correctly (as in, which return value would the query give if it wouldnt work)?
<5> If you didn't get an error, the query worked.
<5> mysql_query( $query ) or die( mysql_error() );
<16> GhostManZero, check mysql_error(), if it's empty you're good
<11> T-Start: will mysql_error return a array or can i do something like if(mysql_error == '') //OK
<5> You may also want to check mysql_num_rows() to see if any rows were returned...
<11> *mysql_error()*
<11> will_ that's easier
<11> thx
<5> :)
<5> mysql_query( $query ) or die( $query . ' - ' . mysql_error() );
<5> Better, so you know what was p***ed.
<16> will_, You got any expierience with codetables ? I'm having lot's of problems :-( We migrated our backup from a gentoo server to an ntfs drive to a fedora server, unpacked and for some weird reason the pages are showing chinese characters :-(
<11> ok
<5> I don't know what "codetables" are :(
<16> I'm searching for a good up-to-date guide that tells me something about utf-8 and such but google gives me rubbish
<5> I don't know much about charsets in general...
<18> hum
<16> nobody does :-(
<18> lol, you really were given a bummer, T-Start
<18> after all the crap before, now you end up with chinese? ;)
<8> T-Start your data could be mangled... try looking at the hex
<19> hi all
<8> T-Start or the raw binary or something
<19> Hoe kan i recup the content of a web page into php var ?
<19> sory ... i speak french
<8> T-Start you could be lucky and the data could be corrupted in a well-mannered way :)
<16> Well.. i'm getting really weird results.. i.e. http://auto.start.be/ first gave me a few chinese characters,.. but opening the code in an editor showed the characters correctly. When refreshing the page manually (F5) the page shows up fine. When in a faulty page pressing ctrl+n (new window) the characters remain
<8> T-Start: auto.start.be is your website_
<8> ?
<16> amongs others yes
<8> T-Start: it looks fine to me
<16> try http://rallycross.start.be/
<16> middle column, under MBE - Racing
<16> i get 'Micha?De Keersmaecker (tip)'
<18> yeh
<18> me too


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
#web
Useless use of sprintf in void context
#debian
#math
rsync error: protocol incompatibility (code 2) at compat.c(64)
#gentoo
dpkg trying to overwirte
debian+smtpd_check_rules
dont think about it, just do it



Home  |  disclaimer  |  contact  |  submit quotes