|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15832 error when using the copy function
Submitted: 2002-03-02 10:53 UTC Modified: 2002-04-03 00:00 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: picklezz at hotmail dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 4.1.1 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: picklezz at hotmail dot com
New email:
PHP Version: OS:


 [2002-03-02 10:53 UTC] picklezz at hotmail dot 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"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-02 13:53 UTC]
What do you mean, forget the dest? If you call copy("file"); it will complain.
 [2002-03-03 04:30 UTC] picklezz at hotmail dot com
Yes but if you do this
copy("file", $folder);

then the file will be uploaded to the root of your computer like I said.
 [2002-04-03 00:00 UTC] php-bugs at lists dot php dot net
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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 05:01:28 2024 UTC