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



Comments:

<0> CarlH - why do you ask?
<1> did you have a better suggestion Stormchaser?
<2> why the hell does someone sentence someone to TWO HUNDRED years for a crime?
<3> itrebal: USA, multiple sentences combined
<4> StormS: strpos() and substr()of course
<0> soooo... should i just use if ($_GET('page') == "") $page = "main"; ?
<2> Meltir: even still, dont you think life would be sufficient?
<3> itrebal: not really.
<4> Mewshi: I's use trim($_GET) == ''
<5> Stormchaser : CarlH taught me regex is easier than strxxx for that
<1> think you can outline it in code Stormchaser?
<2> Meltir: oh.
<4> DavidHKMrPowers: So? Maybe it's easier, but it's much more CPU-intense than ordinary strxxx functions
<0> what's trim do?
<4> php.net/trim
<3> itrebal: you never know if your dealing with an immortal, and that would be unfair. besides - they also have multiple life sentences. but this is OT.



<2> Meltir: meh
<1> k.. thx Stormchaser.. I will pursue your suggestion
<5> itrebal : what kind of crime was that?
<2> DavidHKMrPowers: drugging and raping men
<4> StormS: I'm not quite sure what do you want to do....
<6> do they make linux for pda's
<7> deekayen: well, that TAC cl*** works pretty well (with some minor changes)
<2> Big_osk7: probably
<8> nsanity: good
<3> itrebal: many men - many sentences, based on every singular case. combined. neither was enough for life, so they you added them up.
<2> ok
<9> deekayen: ltns
<4> Big_osk7: You got the answer for that yesterday.
<3> s/you//
<8> piera: change your mind yet?
<6> itrebal: do you know of any I am havinbg trouble finding good ones
<9> deekayen: change my mind about what?
<8> newbie
<2> Big_osk7: nope
<10> hey guys, how would you remove the first 2 chars from a string?
<9> deekayen: never :)
<11> slapaho: substr()
<4> slapaho: substr()
<8> piera: i guess we just weren't meant to be then
<9> hahaha
<4> lol
<3> lol
<10> hehe, nice
<5> slapaho substr( 2, strlen(YOURDAMNSTR)-2)
<10> interesting
<10> thanks david!
<4> DavidHKMrPowers: *blink*
<5> what ?
<12> umm
<4> slapaho: But of course you want the RIGHT version of that...
<10> that is not?
<4> no
<10> sorry im totally new =)
<12> no
<4> php.net/substr
<10> reading all i can but sometimes need my hand held ;(
<10> ya, on that page now
<10> thanks
<12> well this is the reason for manual pages, they're way less likely to be wrong than random help on IRC
<10> hmm, looks like -2 is the options i want
<10> substr($str, -2)
<4> bingo!
<10> thanks guys =)
<12> -2?
<10> good stuff
<4> yes
<13> 2 from the end ;)
<4> Actually... It's 2 not -2
<9> ahh 15 more mins and i'm out of here
<13> :p
<12> yes. it's the start position
<12> while a C hacker like me is comfortable with negative indices, I'm not so comfortable with them and PHP...
<10> awesome, worked! now my ecommerce code is functional hehe. thanks guys
<5> oh, yes I forgot the original string!!!
<5> forgot to put
<12> and the length argument is optional, DavidHKMrPowers



<10> storm, it's 2? -2 worked
<3> slapaho: url ? :>
<10> haha
<12> slapaho: I'm going to wager a guess it ignores sign. -2 is not correct, however.
<10> this is internal. just an api-based backend
<3> k
<12> err
<10> it seems to be
<10> "If start is negative, the returned string will start at the start'th character from the end of string."
<12> no, my guess is wrong. hence the reason for manual pages
<10> and most importantly, the code works
<12> but that's not what you want
<10> hehe
<10> np
<12> you want to remove the first two characters
<10> it's not?
<10> well i actually just wanted the last 2 chars of the string
<12> ah. well then
<10> what it is, is i have a 4 digit exp year, 2010, need 10 from it
<10> sorry i didnt make that clear
<10> my bad
<12> ah, there's quite nothing like writing code that has very finite lifespans
<3> slapaho: dangerous if it will be working beyond 2100 :P
<12> I thought 2038 was bad enough
<3> dannyp: imo that problem should be handled on glibc level :P
<3> kernel or whatever
<4> it already is on 64-bit machines
<12> by the time 2038 rolls around, if I'm still alive, I won't care all that much...
<5> also dangerous if some in year AD538 use your program
<10> hmm
<5> if someone
<10> well you p*** expiration year for cc's to gateways in 2 digit form, the last 2 digits
<12> size_t is not used as consistently as it should, there is code out there that ***umes the type of size_t is 4, and that size_t is signed
<3> DavidHKMrPowers: once the wormwholes kick in it might be a reall danger ;)
<10> so however they make it work it'll work i think
<12> let alone protocols and whatnot that expect to be able to store size_t in 4 bytes
<14> js_ You still there?
<9> ttyl kiddos
<12> I'm just saying, on January 19th 2038 at 03:14:07 UTC, where will you be?
<2> dannyp: right here
<3> lol
<2> celibrating y2k38
<3> itrebal: planning a long NY party are we ? :)
<2> Meltir: ooh ya :)
<12> Y2K was a bust and I think anyone who really knew anything knew it would be, but Y2K38 will be more interesting
<2> dannyp: by that time, it will probably be a bust
<12> now I fully suspect and hope we will all be using 64-bit time_t by then, and everything will be upgraded to support that
<12> but that's not going to happen by itself
<12> itrebal: sounds familiar, eh?
<2> yea :)
<2> hehe, i'll keep arround a 32 bit machine, and watch it screw up
<12> if I'm codemonkeying in 2037 (besides hating my life), I'll make big money, is all I'm saying
<3> dannyp: we wont do it at php level - C coders (i think not even c++) will mostly take the hit.
<12> itrebal: I mean, it's not the most exciting thing... you'll get some aborts and glitches and crashes and whatnot from running processes, and new processes will just by and large think it's december 1901
<15> cynic: hmm?
<2> dannyp: i just keep watching the timestamp, and it'll rollover
<12> Meltir: well as someone who considers his primary language of work C, that's no comfort to me;)
<3> dannyp: if thats your case :)
<12> Meltir: but 32 bit timestamps are used all over the place. doing any work with unix timestamps?
<2> all my loggged dates are all 32bit timestamps, except on my devel system
<3> yes, but we will stop support for those apps topmost in two years :P
<2> that ones 64bit
<16> Hello
<2> hey Sunshine
<4> itrebal: not 8-bits?
<12> PHP won't care because it's not storing them as 32 bit integers anyway, but where are they getting the timestamp from?
<3> crap, people, why not just check now ? lets turn the clocl to 2038 and see what happens ?
<12> Meltir: I have, hence my prediction
<2> Meltir: thats not fun :)
<16> What can cause this: Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in?
<12> a decent amount of processes will crash or stop working, and new processes will generally be fine
<4> SunShineLady: Bad DNS it seems
<3> SunShineLady: dns error - the script can connect to target host


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#debian
#math
kile ubuntu dcopserver
gettext function not found. Please install libintl gentoo
fluxbox dithering
#web
how to list tables in oracle
ubuntu install pdftotext
#perl
firefox jss suse



Home  |  disclaimer  |  contact  |  submit quotes