@# 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> Bina: I'm a little stuck on what you just said.. Can I pm you quickly?
<1> ah ok thx Stormchaser
<2> age6racer: sure
<3> in an included file there is a global variable followed by a function
<3> I want the function to be able to access the global variable but the global keyword does nothing
<4> Another question please, not sure how easy this would be ... I have a .db file which I echo out onto a page, but the file is becoming extremely large, and I only want the top 50 lines of it to show. Is there a way to do that? I'm using : <?php $mail = file_get_contents("/path/to/mail.db"); echo nl2br(strip_tags($mail)) ?>
<5> hi
<5> is mysqli noticably faster than mysql?
<6> teach: fopen() and fgets()
<7> php doesnt find my imagecreatefrompng() function, what could be the problem?
<0> I've nearly got this working now...http://rafb.net/paste/results/ri7VoO37.html but the link is dead (and before you ask there is a page there)
<7> does i need to change something in php.ini?
<0> so something must be wrong with the redirect
<2> age6racer you need to put $link[0] in {} and use double quotes rather than single in the header function
<7> php doesnt find the imagecreatefrompng() function, could there be a missing line or something in my php.ini file?
<8> drleo: Do you have php-gd installed?



<0> bina: which part goes in {} ? just the $link[0]
<2> age6racer: header( "Location: {$link[0]}" );
<9> hi all
<7> (Stormchaser): i dont know
<10> Hello. I have a question regarding the $_POST function (or whatever its called), when you tell it to get something, such as ['firstname'], it will only get the string that is in the name=" " attribute? not id?
<0> ok thanks very much
<8> drleo: Thge check
<8> *then
<2> age6racer: np
<11> theGZA: $_POST is a variable and it is filled with the name=""s of form fields that were POSTed to it.
<11> theGZA: so yes, name="firstname" would end up being $_POST['firstname']
<10> ok.
<10> but NOT id=" " , right?
<11> theGZA: no
<10> k.
<8> http://www.fur.com/~almackey/art/fur/gspell.html <-- <heart>
<12> how do I do an HTTP Redirect again?
<8> php.net/header
<12> ta
<13> Hey, i'm new at loops, First time i'm trying it, her eis my code: http://nopaste.php-q.net/212064 What's wrong with it? It just keeps on loading but doesn't print anything. Thanks
<8> while ($result && $result2 && $result3) { <-- dumb, dumb, dumb, dumb.
<13> why
<8> because that's infinitive loop? That's always 'true', and while will never stop executing unil the condition is false.
<13> oh, i thought that it would be true untill it couldn't give out any more info from the database
<8> And.. Um... Why are you executing the query three times?
<13> three diffrent querys
<8> yes, but you could join them in 1 query.
<13> oh yea that's true :p
<7> u could write SELECT nummer, item, bud FROM $MYSQL
<13> yea
<8> !tell drleo about u
<13> But one question. Will that select row by row? I mean, it inserts rows with nummer, item and bud, will it show row by row?
<2> while( $something = mysql_fetch_***oc($result)) ,,,, might be better, that will keep looping for each row returned and then finish
<2> Factory|David: sorry, that was for you ^
<13> will that give me row by row? shoudnt i use mysql_fetch_row ?
<8> Factory|David: No... You should read carefully what both functions do.
<2> I usually use mysql_fetch_***oc because then you get the field names in the array, so $something['nummer'] would output the value that nummer is in that row
<2> well, it is equal to, doesnt output until you use echo or something
<13> yea. So how would i build up my while loop
<8> Factory|David: Bina told you.
<14> If I use INCLUDE_ONCE to instantiate a DB connection in file A, will the same code block to instantiate a db be ignored in file B?
<13> I got $sql = "SELECT nummer, item, bud FROM $MYSQL_TABLE"; $result = mysql_fetch_***oc($sql); instead of the several querys
<14> Or using the above layout, does it mean that include_once will not redeclare that same code block within file A if its found again?
<13> and now when i build up my while loop i'll do while ($result) { ?
<14> and, err. Happy Mothers day :)
<15> is there a way for test.php to find out which script includes it?
<8> ghostrunner: well... You are *only* 2 months late...
<2> Factory|David: you still need to use mysql_query($sql)... so you can do $result = mysql_query($sql); while($something = mysql_fetch_***oc($result)){ echo "<tr><td>{$something['nummer']}</td>...
<13> oh yeah
<14> stormchaser: not US?
<13> of course
<13> thanks
<2> Factory|David, no prob
<8> ghostrunner: not US. ME. :)
<16> Hi there, i would like to send an email, which embed a html version and a plain text version, what is the good way to proceed in php to do so ?
<8> loiic: phpmailer.
<17> can you have 1 POST form in another POST form?
<8> um... Ehat?
<8> *what
<17> <form method=POST>
<17> can i have them nested?



<8> no
<17> like another one inside that
<17> k
<14> elekchron: i dont think so.
<17> okay thx
<16> looking at phpmailer, thanks Stormchaser
<8> rhx
<18> when i use DB.php pear, i also do $conn =& DB::connect (&dsn); , could someone tell me what does =& do?
<8> !+&
<19> [&] & is the PHP 'Reference' operator. See: http://php.net/references; & is Also the PHP bitwise AND operator. See: http://php.net/manual/en/language.operators.bitwise.php
<20> what kind of error might generate a blank page?
<20> with e_error all
<8> do you have display_errors on?
<20> Stormchaser: will that turn it on by default?
<8> no
<2> can you overload functions like addslashes? I've just read that mysql_real_escape_string is better and want to make sure my whole script is using it
<8> bina: nope.
<2> Stormchacer: oh, looks like ill have to get find and replace out then :)
<8> :)
<8> ...and it's 'Stormchaser' :)
<13> Hey, why does this only return 1 row when i got 2 rows in my table: http://nopaste.php-q.net/212084
<9> I'm developing an auction website. I need a few php scripts to check end-of-auctions, sending emails to winners etc. But running that kind of scripts using crontable isn't suitable for me. Because running the scripts every minute isn't appropriate. Because some of the auctions can end in 23rd seconds of the minute and that will result the auction will shown as "open" even though it's end. ... continues .....
<8> Factory|David: Why are you overriding $result?
<9> How can i overcome this problem ?
<20> Stormchaser: I set Display_errors to On and error_reporting to 0 in the config, while in my php I have error_reporting(E_ALL), but I'm still getting a blank page
<13> well that's the query
<13> well i really dont know why
<8> Tarantulafudge: pastebin the code
<8> Factory|David: fix. It.
<9> Is it suitable to use "require_once" ? I mean i'll add 'require_once "cron.php" ' to all of the site's .php codes
<13> Stormchaser: What should i change it to
<9> Am i clear ? I hope you got me :(
<8> *blink*
<20> Stormchaser: its alot of code, pm?
<8> Factory|David: Into something non-$result?
<8> Tarantulafudge: No. pastebin it.
<2> if you use mysql_real_escape_string do you still need addslashes? and do you need stripslashes for results?
<8> bina: no, you don't
<2> Stormchaser: nice, thanks
<13> lol, i don't know what to put there instead of it
<21> Hello. Anyone have experience with jpgraph ?
<21> Can'tget it to work
<8> cavediver: No. Try some other channel...
<8> !+g10
<19> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
<21> ok
<20> Stormchaser: http://pastebin.com/717249
<22> what is to prefer? require_once or include_once ? What are the differences?
<20> Stormchaser: auth, the page that is blank, should be evlaluated by line 34
<5> is mysqli noticably faster than mysql?
<8> majd: not really... It just introduces more functionality.
<8> Tarantulafudge: Whay the hell are you using eval()?!?
<5> Stormchaser, oh ok...could you just give me an example please?
<5> or...nvm i'll just google
<20> Stormchaser: to evaluate code within spliced pages, its complicated.. basically its for the designers who use dreamweaver
<20> Stormchaser: its applied safely, though
<8> !+eval
<19> If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP
<23> mm2000: http://php.net/require explains the differences
<20> Stormchaser: it all functioned before I added auth.php, lets concentrate on that
<22> MarkL: Thanks a lot!
<20> Stormchaser: it still functions if you don't call auth.php
<23> Tarantulafudge: If you access auth.php directly do you see you "This page isn't meant.." message ok?
<24> Tarantulafudge, make sure error reporting is on
<23> s/you/your
<20> MarkL: thats what I should be seeing, but the page is blank
<23> Tarantulafudge: So it's not the include in the first file, it's purely auth.php alone that has problems
<8> hum...
<8> TML: *poke*
<23> Tarantulafudge: After every header Location you should have an exit; .. might not fix it but you still should have it ;)
<20> MarkL: yes, but I added index.php so you guys would see any globalization problems there might be with includes
<20> index includes auth.ph
<20> index.php includes auth.php
<23> Tarantulafudge: Add exit; after all those header location lines just so we can rule that out as 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:

mplayer fullscreen stretch gentoo
Dell E510 Out Of Range Error
fedora Marvell 88E8001
OBEYSESS_DISPLAY
emerge-delta-webrsync eix-sync
#kde
#css
#sdl
#web
#php



Home  |  disclaimer  |  contact  |  submit quotes