|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-25 23:32 UTC] sniper@php.net
[2005-04-02 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Description: ------------ i moved from my old server to a new faster one ... everything works fine except uploading files move_uploaded_file produces NO errors or NO warnings ... but the file does not reach its destination i can read /fpassthru it from the $_FILES['tmp_name'] and i can copy it ... just move_uploaded_file does not work safe mode is on on the old server - off on the new server Reproduce code: --------------- $upload_dir = "tmp/"; $filename = $_FILES['filetoupload']['name']; /* if (copy($_FILES['filetoupload']['tmp_name'],$upload_dir.$filename)) { // this works } */ if (move_uploaded_file($_FILES['filetoupload']['tmp_name'],$upload_dir.$filename)) { // this does not works but shows no errors echo "done"; # this is shown } Expected result: ---------------- a file in my tmp/ directory ... but it doesnt reach it Actual result: -------------- the tmp/ directory stays empty when i use move_uploaded_file (copy works though)