| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Comments:
<0> is there a painless way to code "if $x is an odd integer ... elseif $x is an even integer ...." <0> ? <1> if ($x % 2 == 0) { } else { } <2> yeah modulus <0> ahhh sweet <2> why? <2> i'm bored :-/ <0> so $x % 2 == 0 means if $x is odd ?? <0> err... I mean... if ($x % 2 == 0) means "if $x is an odd integer" ?? <0> or other way around? <2> ok % is the remainder <2> so if you divide by 2 and the remainder == 0, it's even <2> if it's it ==1, it's odd <1> % is the modulus operator <2> but you're using else{, so it doesn't matter <1> $x % y = $x - floor($x / $y) * x
<2> woah <0> ahhh ok... so $x % 2 means "divide $x by 2 and store the remainder" right? <1> sure <2> haha <3> Hey guys, anyone know a way I can export some fields I have in a mySql db, to a csv format with php? <4> yes <4> look up the mysql syntax <4> then do mysql_query() <4> and insert whatever you looked up <1> why would you use php for that? <2> haha <2> using ****ing microsoft access <1> ? <2> there went that server... <5> fedt: why in god's name would you use access? <6> access!? <6> =O <7> people still use access? <8> BAHAHA <7> don't you people know microsoft is an evil evil corporation. <5> hell, if you want to use something like access, use sql server express instead. <2> i wouldn't <4> I'm not even sure I know what access is :/ <2> i got hired to export an entire ms sql database into ****ing excel <5> ansimation: microsoft makes me a good living, so i wont complain too much :-/ <9> ermm how to show the php error warnings? <10> @error_reporting! <11> (PHP 3, PHP 4, PHP 5) <11> int error_reporting ( [int level] ) <11> Sets which PHP errors are reported <11> http://www.php.net/error-reporting <2> w00t <9> thx <5> sql server is actually quite good, as is .net. that's microsoft's only redeeming qualities really. <12> yeah <12> I'm doing .net these days too <12> on top of php <12> if .net were standardized across platform, I'd cum myself todeath <2> hmm...is there anyway of accessing cookies from another site in a php script? <2> and no, i'm not hacking <2> ff has a glitch in which cookies for www.site.com are different from just site.com <12> j00 r h4x0r1ng t3h g1b50n <2> :((((( <2> @limit! <11> Failed to find definition for limit! <2> @limit <11> Did not find any matches for limit <11> Possible matches (best first): <11> posix_getrlimit, set_time_limit, curl_init, dblist, imagefilter, imap_8bit, imap_list, imap_qprint, ini_set, is_int, list, ltrim, m_uwait, min, mysqli_commit, mysqli_init, oci_commit, ocicommit, split, spliti <2> can someone explain to me how you use calculus in php? <1> fedt: que? <2> things like limits, derivatives, integrals... <1> there's nothing built-in to solve calculus <2> ok, but i don't get how you would do it <1> what do you mean? <1> you'd do it the same way you do it on paper <2> things like limits don't always follow the rules though <13> ?? <14> ok, I'm trying to order hidden form variables in such a way, that it goes in multiples of two- "1, 2 (newline)", "3, 4 (newline)". "5, 6 (newline)", "x, x+1 (newline)" - only it doesn't seem to be doing this. <14> hm <15> evening folks
<13> evening comcor <13> robert_ .. how are you trying to do it? <16> sp comcor <16> and all <14> Stoned4Life: I'll tell you in a moment, I'm trying something first <15> hi jon, Stoned4Life <7> jon boy, comcor <7> sup fellas? <13> got a spanish thing to write.. not in the mood <13> so i'm downloading tons of music instead!! yay <13> my share ration is remarkably low =( <13> ratio* <8> it'll grow <7> as you get older, things get bigger, Stoned4Life. <13> lol <13> hmm.. can iTunes not play FLAC files?? <7> flac? <13> something about lossless quality, what not <7> ok... <14> Stoned4Life: http://r-butler.net/~robert_/code/page1.phps <15> getting my weblog up and runing <15> Stoned4Life: iTunes doesn't play much <13> yeah, but they organize music like nutin else <13> windows media player plays it <15> too true <17> hmm, damn. forgot what I was gonna do. <13> damn.. i never really realized the diff between 128 and 192 ... ****, i've been missing out =| <17> I can't hear the difference <18> iTunes ****s <18> organize music? my *** <13> in files, not in iTunes itself <13> if i want the music sorted, winamp/wmp all the way. but on the hd, i think iTunes takes care of business .. as long as the tags are taken care of (correctly) <19> evulish: rad site <20> question: what is the best way to store a binary number in a database? (101001011010). i was converting it to Decimal, but if theres over 31 characters in the binary it overflows a decimal <20> by decimal i ment int <20> actually i think my problem is my bindec function <1> converting it to decimal? how large of a number were you storing? <1> 10000000000000000000000000000 <1> 99999999999999999999999999 <1> that's a big*** number <20> Evu the number is over 32 1's and 0's long <18> um, he said in the binary <18> aka, over 31 bits <1> 31 characters in binary = 248 bits, isn't it? <18> ChillAxen: if there is a "long" data type, use that <18> "0" is a character (digit) in binar <18> y <13> i need to get an external harddrive to put on my network.. my laptops' 60gb won't be able to handle all this music... <20> two-bits i figure that out but i think my problem in PHP's bindec function <20> cause its limited at an int <18> by characters he means digits in a binary (base 2) representation of the number <20> mySQL has a bigint so i think that will work for storing it <1> why not convert base 2 to base 10 then store it as an int? <20> evulish i am <1> i'm confused where there's a problem <20> lol thats exactly what i am doing <1> php can't handle 32 bit ints? <20> my base 2 is over 32 values (i think thats bit) <19> php can handle 32-bit ints <19> last i checked <18> "bindec() converts a binary number to an integer. The largest number that can be converted is 31 bits of 1's or 2147483647 in decimal. As of PHP 4.1.0, this function can also convert larger numbers. It returns float in that case. " <1> well, bin->dec is easy as hell <20> evu I am doing a bin to hex and its maxing out at 2147483647 =[ <20> 1 sec, let me test this out a bit <20> before i continue wiasting your time <18> how large might this data get? <20> idk <19> http://jed.bz/haha.jpeg <19> i got that in my inbox today <19> as spam. <20> its not "really" a number rather a list of booleans <19> nsfw <20> that im storing as a number so i can easily search my database without a leftjoin
Return to
#php or Go to some related
logs:
#kl #india ilove chatworld #php #india xorg root_size = #allnitecafe Hello Yar ajjkal Is there any single females karachi to nice chat with me
|
|