Welcome Guest, please login or register.
Username:
Password:

News: Welcome to Hostpapa Forums!
Pages: [1]   Go Down
Topic Tools  
Read
October 28, 2009, 09:54:54 AM
dreamwyzard
Newbie
*
Posts: 1



I fixed this on my website "uploader" page using PHP. I used to get the message
"Warning: move_uploaded_file() [function.  move-uploaded-file]: Unable to move '/tmp/phph1OR9U' to '.  /files/filename.extension in <filepath>.  php on line <number>"

The trick is to make sure to use a relative path to your ftp directory. The easiest way to check the path name is to upload something to the ftp directory through cPanel file manager. It will show a path like: "/home/<username>/public_ftp/incoming/" ...or whatever folder you have set up. I believe the problem lies in the difference in PHP 4 to PHP 5.2.11 (which HostPapa uses). The path is not exactly absolute. Make sure the PHP file AND any HTML files match pathnames, and don't forget to set permissions in the receiving folder to "777". You can do this using an FTP uploader (ie SmartFTP or FileZilla) or in cPanel.

Hope that helps someone! I submitted a ticket, but I figured it out before support could.  Smiley
Logged
 

Read
February 24, 2010, 01:31:31 PM
mentalist3d
Jr. Member
**
Posts: 81



thanks for sharing your solution Smiley
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net