ID:               15832
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

What do you mean, forget the dest? If you call copy("file"); it will
complain.

------------------------------------------------------------------------

[2002-03-02 10:53:57] [EMAIL PROTECTED]

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

Reply via email to