Bug #15832 Updated: error when using the copy function

From: Date: Wed, 03 Apr 2002 05:00:04 +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-3875@lists.php.net to get a copy of this message
ID: 15832 Updated by: php-bugs@lists.php.net Reported By: picklezz@hotmail.com -Status: Feedback +Status: No Feedback Bug Type: Unknown/Other Function Operating System: Windows PHP Version: 4.1.1 New Comment: No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-03-03 04:30:39] picklezz@hotmail.com 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#3875) next »