|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 05:00:01 2025 UTC |
What do you mean, forget the dest? If you call copy("file"); it will complain.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.