php.net |  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
Votes:2
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-02 13:53 UTC] sander@php.net
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
$folder="";
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: Sat Dec 21 14:01:32 2024 UTC