@# 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 30 31 32 33 34 35 36



Comments:

<0> $this->config['test']
<1> ehh trying to figure that out myself aswell
<2> richardlynch: you can always do foreach() magic
<1> hard to explain what I mean
<0> Whenever I see $_POST['foo'] in a script, I ***ume it's not scrubbed
<3> Here's the thing: I think every item in $_POST/$_GET/whatever should be scrubbed and validated as much as humanly possible for whatever data is expected. Some data you KNOW it's very specific / stringent requirements. Others, well, you don't. Hard to see how to make that happen in a nice loop for all.
<4> Think I found my issue, kinda. It stems from Apache. When I load all virtual hosts, fopen against a url doesn't work
<2> what do you mean "doesn't work"?
<4> straight timeout
<5> Love the date in five days... 6/6/6
<3> Motoko-chan: Do your vhosts mention php_value url_fopen_wrappers stuff?
<6> er
<6> everybody knows jymmm
<5> ElliottHird dont get cocky with me young lady!
<6> *man
<2> Jymmm: The'll be a pandemonium amongs the superstitious :)



<2> *there'll
<4> richardlynch, nope.
<3> Those of us in the US who have been bombarded by advertising for some movie 6/6/06 are quite tired of this...
<4> One thing I had to do is bump the open file handles in linux.
<4> Since it opens 1583 or so log files on start
<4> Going over the 1024 hard limit
<5> Eh, take it to #NagBitchComplain and/or #whiners
<7> if i have a form in a.php with an input called $user that posts to b.php, can b.php reference that var as $user ?
<3> Motoko-chan: It's quite possible that you are running into the same problem, only later, as you've got too many files open. In that case, a simple fopen() would also fail. Try that.
<4> I set ulimit -n 40690
<4> And an fopen against a local file works.
<3> gymsmoke: Only if you have register_globals on, and you should NOT. $_POST['user'] however, would work.
<4> Which means possibly there is an issue with network connections?
<6> richardlynch, that'd be $_POST['$user']
<7> richardlynch: i didn't think so. I just grabbed a script from a site to help me figure out something, and that's what's in this code! I couldn't believe it, and I thought maybe they were doing something 'interesting' with variable propogation...
<6> He wants an input field named "$user"... you can name it anything and use $_POST['whatever'], gymsmoke
<3> ElliottHird,gymsmoke: Using name="$user" would violate the HTML/HTTP specs, almost for sure... It might "work" but it's a Bad Idea.
<6> richardlynch, yeah, I wasn't advocating it or anything.
<7> richardlynch: yeah, that's what i get for trying to shortcut learning something...
<6> heh, we both started with "yeah,"
<8> yeah, you guys did
<8> broken?
<6> yeah
<8> explain :p
<2> yep... Broken record... ****s for home use, tho
<6> UI-wise, not code-wise
<6> people do NOT come back and run it again regularly, especially if you don't mention to them about it
<8> never said its fool proof
<8> but it'll get you some connections easy
<8> CONNECTED: 51 atm
<6> You still advertised it without mentioning the revisit part... meh.
<8> and I'm dling + posting
<6> meh, i'm not gonna start this again
<9> I have PHP 5.0.4 (CLI) and I'm getting this error: "PHP Fatal error: Cl*** 'DOMDocument' not found in /www/svn.booksxyz.com/cli/schools.php on line 67." According to http://php.net/dom, "There is no installation needed to use these functions; they are part of the PHP core." WTF?
<9> I'm running 5.0.5 (CLI) on another machine and it doesn't encounter this issue.
<10> Hi, how can i list last created 10 images in a directory?
<3> Elazar: Perhaps it got added in 5.0.5...
<2> no
<2> Elazar: Do you have DOM installed?
<2> I mean php-DOM
<3> redrain: http://php.net/opendir http://php.net/filectime
<11> hello guys. Which way should I install php under windows 2000 ? cgi or isapi? what's better?
<6> interesting, thank you elazar for the link, because it seems php.net isn't loading for me
<4> For iis, isapi is nice.
<5> fdisk
<4> Better integration for certain things
<12> the answer is 42
<1> okay, I have got various variables like $config['test'] = 'test'; in my config.php
<2> !+24
<2> o.O
<2> !+42
<13> 42 is the answer to life, the universe, and everything
<6> isapi
<10> richardlynch: I'm reading that pages, but i don't know how can i list only last 10 images...
<1> now I simply would like to include these variables into my cl*** and function
<6> jymm, yes, that's right, fdisk is the best
<3> redrain: Read the toher page, about filectime



<6> actually format is a better and more efficiant version
<5> !+pafy
<1> but I should also be able to use them outside, is this possible?
<13> [P***ive Agressive Fsck You] We aint buying your crap, so knock it off!
<6> takes longer though
<11> Motoko-chan: I have readed some time ago either cgi or isapi way was in a "experimental" state. Do you know which of them?
<3> ISAPI was experimental longer than CGI, but that was ages ago, almost for sure...
<9> Wolfpaws: One of us apparently isn't understanding the manual or the manual is incorrect.
<2> Elazar: Yes, and that's not me.
<14> What's the question?
<9> Wolfpaws: To say that they're part of the core would imply to me that installation of anything beyond what's needed for PHP is required.
<2> Elazar: php -m should give you the list of modules... Check if DOM is there.
<11> richardlynch: do you know if I will have problems changing the installation mode on a current install of php from cgi to isapi ? or it should be the same?
<9> Wolfpaws: It's not. Why is that, if it's "part of the PHP core?"
<14> Elazar: "part of the PHP core" means "distributed with the tarball"
<2> Elazar: Um... It's *not*
<3> With Windows, I can't guarantee anything... I don't see why you WOULD have problems, mind you, but... Try it on a server you don't care about first and see.
<9> Wolfpaws: Then the manual is incorrect.
<2> um... yah... What TML said
<2> Elazar: no it's not
<14> Elazar: No, you're misunderstanding what the manual means by "part of the PHP core"
<11> thanks a lot guys.
<15> hmm
<2> Elazar: "shipped with" doesn't mean "compiled with"...
<9> TML: I'm understand that I said it *is* part of the PHP core and Wolfpaws just said it's *not.*
<15> Im trying to make a simple file-uploader ,following this example:
<9> *understanding
<14> Elazar: Wolfpaws misspoke
<15> http://www.weberdev.com/get_example-3920.html
<9> TML: Apparently.
<14> It happens to people
<9> Wolfpaws, TML: Thanks.
<2> Elazar: I ment what TML said, but didn't came out correctly.
<15> It works great, but I'm trying to mod it so that it checks first to make sure it wont over-write a file that is already there
<15> I thought I could add in a line like this:
<3> Writeress: http://file_exists
<15> if(file_exists("/uploads/".$_FILES['myfile'] ['name'])) {
<15> echo "That file already exists";
<15> }
<15> No errors happen, but for some reason, this never works.
<16> I think that there's enough dust on the top of my monitor to create yarn and knit myself a sweater.
<15> Steph, my monitors are the same way
<15> tried to dust em off yesterday to no avail
<2> Stephanie: Then go ahead :)
<3> Writeress: file_exists($dir . '/' . $filename)
<16> I mean, the sweater would barely cover my breasts...but that's still a lot of dust.
<15> ok richard i'll re-write it
<2> A puppy on my monitor should get a wash, tho :)
<3> Writeress: You are checking for "/uploads/" which would be way at the tip-top of the directories, like /usr and /bin and /etc
<15> hmm i thought it would check the root
<15> because of the above declaration..
<15> $path = $_SERVER['DOCUMENT_ROOT'];
<17> Stephanie:: nah, don't knit the sweater.
<17> don't need something else to cover up with
<3> Writeres: Only if you stick "$path/uploads" in there.
<3> Maybe we should start a dust collection charity, to get Steph some new clothes?
<3> :-)
<16> I prefer my clothing made from the finest monitor dust.
<15> testing now
<3> So only from 21+" monitors?
<15> richard
<15> thanks that was it
<15> missing the simple $path
<15> made all the difference
<18> suggestions? if I'm going to have a dropdown box of say.. city names.. would it be better practice to store them in a mysql table (seems like overkill) or an array (extra memory for php wasted?)
<3> mik3dub: Will the cite names EVER change? Who changes them? When? How? Do YOU want to get called up every time a city is added? Or you want a web form to let the drone do it?
<3> s/cite/city/
<19> mik3dub: you could always just hardcode the cities drop down in to html and move the "waste" to the client side;)
<3> mik3dub: The memory "waste" is meaningless, really.
<19> unless you're talking about megs and megs of strings (that's a lot of cities!)
<20> guys
<9> Trying to compile the DOM extension from source for 5.0.4. Getting this error when I try to run phpize: "line 105: aclocal: command not found." Suggestions?
<6> find whatever provides aclocal?
<18> city names won't change, and if they do I'll be the one doing it.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ubuntu alt+shift problem
gentoo + firefox + small font
#perl
gentoo cannot resolve virtual package name to an ebuild
gentoo bootsplash_patch Sorry, this kernel version is not supported.
#sdl
#debian
imap.php line 180
xorg ctrl shift numlock mouse doesn't work
Host unknown DNS sendmail 550 5.1.2



Home  |  disclaimer  |  contact  |  submit quotes