The 5th Annual China PHP Conference

Voting

Please answer this simple SPAM challenge: max(nine, six)?
(Example: nine)

The Note You're Voting On

garyds at miraclemedia dot ca
14 years ago
As it has been mentioned, Windows-based servers have trouble with the path to move the uploaded file to when using move_uploaded_file()... this may also be the reason copy() works and not move_uploaded_file(), but of course move_uploaded_file() is a much better method to use. The solution in the aforementioned note said you must use "\\" in the path, but I found "/" works as well. So to get a working path, I used something to the effect of:

"g:/rootdir/default/www/".$_FILES['userfile']['name']

...which worked like a charm.

I am using PHP 4.3.0 on a win2k server.

Hope this helps!

<< Back to user notes page

To Top