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



Comments:

<0> any better ways ??
<0> the first boundary string contains the byte length of the following binary data.. so i can do it that way instead of searching for two boundary strings and storing the data in between
<1> for($i=0; $i<$num_rows; $i++){ } <--would that work for each repetition of a post, i would try it myself but im slightly php'less at the moment?
<1> ($num_rows is the number of rows thats returned from a mysql table)
<1> anyone?
<0> lilkid: would it be better to do something like: while($post = mysql_fetch_array($allposts)){}
<1> ohh i see
<2> can someone take a look at that and let me know why I would still be getting a new entry for every text box even if it is empty. http://pastebin.com/560505
<0> $allposts = mysql_query("SELECT * FROM `forum_posts`"); while($post = mysql_fetch_array($allposts)){ echo "Post Number " . $x++ . " is "; print_r($post);}
<2> this is what my form looks like: http://pastebin.com/560507
<1> dtb: thanks, much appreciated :)
<0> lsailor: put something in on like 20: if($val == "")continue;
<0> the form posts.. but it posts blanks.. php picks up the array of blanks,.. and inserts blanks
<0> hmm... so no help on extracting binary data from a file stream contained within two "boundary strings" ??
<2> ty... I will try that
<0> while(reading_from_stream){if(data is between boundary strings){store_data();} }



<0> while($char = readfromstream()){search_boundaries(); if($foundsecondboundary)break; else if($foundfirstboudary){$data .= $char;} }
<0> meh
<3> five multiplied by 45 to the power of 2 is 10000, right?
<4> it is
<5> exalted> (5*45)**2
<5> 50625
<6> #math lol
<5> exalted> 5*(45**2)
<5> 10125
<3> wtf...
<7> having trouble with php 4.4.2 on os x tiger. complaining about a symbol in libjpeg not existing (_jpeg_resync_to_restart). a grep confirms my libgd.2.dylib *does* have this symbol, however. http://rafb.net/paste/results/iGGrdv50.html any things to check or try appreciated
<5> 45 to the power of 2 times 5?
<5> remember exponentation takes precedence over multiplication, so you have to use parentheses accordingly if wanted.
<3> the what?
<3> wait, i think i know it why the problem is faulty...
<3> some ****head i am supposed to call teacher rounded down the 45 :S
<3> i was supposed to get 10000 :/
<3> and there is no carrot function on the microsoft calculator...sjees
<3> or does it have a different word in english? :S
<3> square :S
<8> aidan, ive figured out why count() isnt working, as if i leave a question unanswered, the array isnt actually created, so its counting $value === 0, but a 0 $value would never exisst as the array isnt there. is there any other suggestion u can think of to work around this?
<9> Fushuing: ^ is to the power of
<7> found it finally... http://troystanger.com/index.php?title=installing_a_dynamic_version_on_libjpeg_4
<3> bashusr: i meant to reverse the power proces :P
<9> and you gotta factor significant figures if you're doing some scientific application
<9> the square root of
<3> 44.72 is the actual answer
<9> you have to use regular calculator
<9> not the scientific one
<3> 5*44.72^2 = ~10000
<10> !44.72*44.72
<11> 1999.8784
<10> !1999.8784*5
<11> 9999.392
<3> ...no need to be smart ***ing -_-
<10> !pow(3,2)
<10> TML O_o
<10> !3^2
<11> 1
<9> !3^5
<10> !9^3
<11> 10
<9> huh?
<3> >.>
<9> what does ^ mean?
<10> !81^9
<11> 88
<9> doesn't ^ mean the power of?
<9> to the poewr of?
<3> yes, it does
<10> nope
<12> boolean math
<3> :S
<9> ie 2^3=8?
<10> !10^2
<11> 8
<9> huh?!
<3> :S
<9> doesn''t ^ mean to the power of in any form of math?
<12> no



<3> now i need to tell to calculate 1 to 45 and put the result in an array :/
<10> bashusr yes, but not for php or php-bot
<9> so how would you say 3x3x3 shorthand?
<3> GarethAdams: according to microsoft and my physical calculator it does
<12> according to Jymmm's lines above, it doesn't
<3> bcpow($result, '2', 255);
<10> GarethAdams: <10> bashusr yes, but not for php or php-bot
<9> *whew(
<9> *whew*
<9> i've used it in the past like that
<9> and if i was wrong...that'd be pretty embarressing
<13> !144^4
<13> cool
<3> array consists out of 45 spots, how to fill them :/
<3> automaticly that is
<13> http://www.php.net/array
<10> !=arrays
<10> !+arrays
<11> [ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well.
<3> St = 0.5*g*t^2
<3> i know, simple formulae :/
<10> http://www1.chapman.edu/~jipsen/mathml/asciimathdemo.html
<3> o.o
<3> i still don't know how to auto-generate stuff in PHP :/
<14> how about range 1,45
<9> Fushuing: autogenerate?
<9> rand() :-P
<3> not that kind....
<3> more like, calculate 1, put answer of one in array, calculate 2, etc, etc
<14> Fushuing, I just got here, missed the first, but you want an array of 1-45? $arr = range(1,45);
<3> and then have one big *** array of answers which can be put in a graph
<3> mfonda: it can be dynamic
<14> Fushuing, what are ya trying to do?
<3> trying to calculate answers for use in a graph :S
<3> lemme try my own solution first though ;s
<14> function fx($x) { //do some math on x, return $x; } $answers = array(); for ($i = 1; $i <= 45; $i++) { $answers[] = fx($i); } something like this?
<3> from a first glance till where i got to read before getting headache, yeh :S
<3> i think so
<14> Fushuing, anyways, every checked out Mathematica or Maple? some good math softwares if youre ever in need
<3> i'm doing this in PHP so i can pickup on my physics cl*** and learn new stuff in PHP
<15> biggahed: enough please.
<16> for some reason when i post with my guestbook it inserts a post in mysql and if i post again it inserts the old post, so i get two of the same, even if i change the form...
<16> can anyone help?
<17> what's the best way to go with cookies? setting and unsetting, changing the value to true and false or expiring and setting?
<15> mfonda: $answers[$i] = fx($i);
<3> mfonda: i keep getting NULL for an answer
<15> fightingfriends; php.net/cookie
<3> ...i think i just made myself look stupid
<1> what did biggahead do exactly?
<17> aidan: yeah, I know how to use them, but out of those three which is the best way to go?
<16> anyone?
<14> aidan, doesnt matter... key shouldnt matter
<1> awwa: pastebin the script?
<16> okey
<15> fightingfriends: there's only one way, you can't unset, and expiring means you have to resend the cookie and lose all the other values, just follow the damn docs
<15> mfonda: a graph needs x/y pairs, I'd says it does :P
<16> http://pastebin.com/560569
<15> foreach($var as $x => $y) {
<16> here
<1> ok
<15> Biggahed: what are you doing?
<15> why do you have 3 clones in this channel? why are you constantly joining/quitting?
<16> lilkid: cant figure out why it keeps inserting the same post even when i change the form information
<1> awwa: try unset($eachvariable); before defining the variables
<3> mfonda: check pm
<16> lilkid: huh?
<14> Fushuing, you didnt send me one
<18> ugh d/c
<16> > lilkid: huh?
<16> lilkid: i dont understand what you ment
<16> meant
<18> hold on, ill pastebin what i mean
<3> doh
<19> I have a php page that is displaying nothing but a blank page and no error. Any ideas of how to force it to provide me an error so i can fix the problem?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#openzaurus
#kde
#linux
karma on gentoo
fedora ssod
opensuse 10.2 pptpconfig
#kde
pcmcia_list.html
#perl
#perl



Home  |  disclaimer  |  contact  |  submit quotes