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



Comments:

<0> Yes.
<1> http://aidanlister.com/repos/v/function.size_readable.php
<0> (To the: have to tell it waht to order by.)
<2> the slash means divide, right
<3> hey simple question.
<4> Yes, but for some reason, it outputs:
<5> hey guys
<6> hey
<4> 5748.9794921875
<4> lol
<4> I guess I should round it to less
<4> and add KB
<4> :D
<7> anyone know of php accellerator software for php5?
<7> or one that just works with php5
<5> I have a client using php with postgresql, and he was previously using a database with ASCII encoding. The new one is UTF-8, and characters are printed as two symbols instead of the proper character when output by the PHP, any ideas?



<8> why does aeveryone want a php excellerator?
<3> <a href="someFile.php?name=schmuck">click</a> <? echo $_GET['name']; ?>
<7> because caching php files is sensible?
<3> that line would ouput schmuch in the page with the link
<3> I want the echo to output in a fresh page
<3> how could I do that?
<3> without having to create a static page for it.
<3> I want everything to be dynamic.
<0> Create a DYNAMIC page for it!
<9> You could, y'know, create a page that only contains "<?php echo $_GET['name'] ?>"
<3> so its inevitable to write another file?
<9> Doesn't get fresher than that.
<0> No.
<3> true true
<0> You could use: "if(isset($_GET['name'])) { echo($_GET['name
<10> if (!isset($_GET['name'])) { echo '<a href="someFile.php?name=schmuck">click</a> } elseif (isset($_GET['name'])) { echo $_GET['name'] }
<10> oops
<0> Close tags, else it, move on.
<2> mattmcc to test
<10> pressed enter too fast
<2> lol
<8> echo empty($_GET['name'])?'NO NAME!':$_GET['name'];
<3> FreeOne3000: no I think that would still output in the same page
<3> I've tried that
<10> torz: then you are doing it wrong
<3> hmmmm
<10> try my example (with the quotes corrected)
<2> I used to be really stupid and forgot to put the _ in $_GET[]
<0> Torz: Not if you Else
<10> if (!isset($_GET['name'])) { echo '<a href=someFile.php?name=schmuck>click</a>' } elseif (isset($_GET['name'])) { echo $_GET['name'] }
<10> TADAA
<0> if(...) {...} else { ...page here...}
<10> this should work
<6> else if
<10> missing a few ;'s :D
<5> nevermind fixed it
<5> header ('Content-Type: text/html; charset=UTF-8');
<10> yep, mine does it :)
<10> <?php if (!isset($_GET['name'])) { echo '<a href=index.php?name=schmuck>click</a>'; } elseif (isset($_GET['name'])) { echo $_GET['name']; } ?>
<3> sweet, is there a way to say if(!isset($_GET['anything'])){ ... }
<10> ....
<2> yes
<2> as long as its a var
<10> that's what i just said a couple of times now
<11> hey all :) i'm trying to find the source of the uploading in the cvs... can someone help me please ?
<2> <?php if(!isset($cow) {print 'your nation is nder attack';}?>
<3> well not anything sorry
<3> everything
<3> more rather
<10> nameless|: nice typoing
<2> lol
<12> Would have been funnier if he missed the n instead of the u.. :P
<10> ...
<10> he missed a )
<8> BigE: :)
<12> DeathCore: Wasn't even looking at that part, was looking at the spelling, where's your sense of humor man?
<2> hey, i was typing fast
<2> lol
<2> oh ctap, I did miss a )



<2> :o
<10> :P
<13> hi people
<2> Im not sure if if isset ($var) {} would work
<2> but I think thats what I use
<2> when I have to
<13> is there an option to when there an php error, to not be displayed the full path of the file to the browser?
<2> um, not have it display the error
<10> what about not displaying the error?
<9> Yeah, turn off visible error reporting.
<9> That's what log files are for.
<2> ini_set()
<10> error_reporting(0);
<2> or something like that
<8> DeathCore: no! bad!
<10> :(
<10> why is it bad?
<2> lol
<9> No, don't disable error reporting entirely. Log errors off-screen.
<8> DeathCore: you have to have errors, man
<13> like, the full path is "/home/web/site1/test/index.php" i just want "test/index.php" to be displayed
<10> :P
<2> change the ini file
<10> i usually FIX all my errors
<2> I try to fix them
<9> There is no such entity as bug-free code.
<13> hum well i don't want to disable error reporting
<9> Therefore, log your error reports. :P
<10> currently i have all my files on error_reporting(E_ALL);
<0> There is such entity as error_free code...
<13> just dont want to show that information to my hosting users
<8> DeathCore: i set mine to 2048
<10> twice a byte in bits ;s
<10> im really scared now!
<8> [sr]: ini_set('display_errors', false); logging - i'm not sure
<8> DeathCore: it bitches about date() if you dont set the locale :)
<8> or other things
<10> :P
<10> "BITCH BITCH BITCH!"
<10> yeah, really useful information :s
<8> hehe
<13> itrebal let me check
<10> you a fool
<2> g2g
<14> hello everybody
<14> i have kind of a difficult question to answer. Imagine a directory with multiple sub directorys that can contain other subsub directories as well. I want to create a webpage that shows the files in every directory. But i want to show only the last 3 files that were placed there (check system date). Is this possible? Could somebody point me in the right direction? i need to use recursive loop through the dirs i guess or something? but
<9> Of course it's possible.
<9> There are functions to get files, and there are functions to get modification times.
<15> will PHP5 have a problem with object A holding a reference to object B which holds a reference to object A?
<9> dools: No, neither will PHP4.
<14> matt, where should i start? just output all the files in 1 folder first? then go on and check the dates?
<15> Mosselmaniac: there is a good directory parsing function that does not use recursion on http://au2.php.net/readdir posted by Jason Wong
<16> dools: glob()
<16> If you want subdirectories, you'll need recursion.
<14> dool : would that walk through all directorys? not give how many there are, and how many sub directories are?
<16> err, Mosselmaniac*
<16> !!!
<14> i want to use glob?
<16> Mosselmaniac: Do you?
<14> don't know :P
<16> Well, get on it!
<14> 'just' walk through all the directorys
<14> do a *.* with that glob function
<14> get the size of every file
<14> store it in an array
<14> and then somehow get the biggest three?
<15> mattmcc: thanks by the way
<17> hi all
<10> hey....since when are variables case sensitive?
<17> when i write a code like - echo '<a href="index.php">'; the html ouput is always with the total url like this one <a href="http://www.blablabla.com/index.php">;
<0> Since they arn't?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

electric field of half sphere shell
Win98/Debian dual boot
#kde
ion3 on centos
etch install expert megaraid initrd
Unable to locate tools.jar debian
#gentoo
wlassistant systemtray
Bitornado GUI
#egghelp



Home  |  disclaimer  |  contact  |  submit quotes