Bug #15832 Updated: error when using the copy function
| From: | picklezz at hotmail dot com | Date: | Sun, 03 Mar 2002 09:30:39 +0000 |
| Subject: | Bug #15832 Updated: error when using the copy function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1542@lists.php.net to get a copy of this message | ||
ID: 15832
Updated by: picklezz@hotmail.com
Reported By: picklezz@hotmail.com
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.1.1
New Comment:
Yes but if you do this
$folder="";
copy("file", $folder);
then the file will be uploaded to the root of your computer like I
said.
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 13:53:22] sander@php.net
What do you mean, forget the dest? If you call copy("file"); it will
complain.
------------------------------------------------------------------------
[2002-03-02 10:53:57] picklezz@hotmail.com
When I use the "copy ( string source, string dest)" function in PHP
4.1.1 and Apache 2.0.28 for uploading files to a dir and forget to set
the "string dest" the file will bo copied to the root dir of my
harddrive. I have set the php.ini to have this lines.
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
user_dir = "C:\Program Files\Apache Group\Apache2\htdocs"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15832&edit=1