Re: php question about version 4.2.3

From: Date: Mon, 07 Apr 2003 15:37:20 +0000
Subject: Re: php question about version 4.2.3
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142708@lists.php.net to get a copy of this message
At 17:24 07.04.2003, Chow Alex spoke out and said: --------------------[snip]-------------------- > > > >> Dear webmaster, >> I am a student that using php for the annual assignment. I am using php >> version 4.2.3, winXP, apache. When I use the ¡§copy¡¨ function to make a >> upload file link, an error message show: ¡§Warning: Unable to open '' for >> reading: Permission denied in c:\apache\htdocs\test\getfile1.php on line 9 >¡¨ >> >> I have try to use these two files on my friend computer, they works. He >> is using php version 4.0.5. >> >> How can I solve the problem? PLS help me --------------------[snip]-------------------- Chances are that register_globals is off with 4.3.0 (it defaults to ON for versions earlier than 4.1.0). Either change all code dealing with form variables to use $_REQUEST['variable_name'] (or, more specifically, $_GET['variable_name'] or $_POST['variable_name']), or enable register_globals (not recommended). You might also extract() the $_REQUEST array on top of your scipt to avoid changing your code if that's too complicated, but be aware of the security risks with injecting user-provided data into your script, without further checks. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#142708) next »