HI all,

I am using a php Code for Image hosting script and having this kind of error continuously.....

"Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83"

Line Number 83 contains this

"if (move_uploaded_file($_FILES,$filedir."/".$newname))"

Help me plz how to get out of this trouble......


You can check yourself here http://masalalook.com/imagehost/index.php

Thanx.....

HI all,

I am using a php Code for Image hosting script and having this kind of error continuously.....

"Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83"

Line Number 83 contains this

"if (move_uploaded_file($_FILES,$filedir."/".$newname))"

Help me plz how to get out of this trouble......


You can check yourself here http://masalalook.com/imagehost/index.php

Thanx.....

Your $filedir variable should not be a url, It should be a directory name like

/home/masalalo/public_html/upload

And before uploading a file into your server, your uploadable directory should have write permissions(Change the mod to 777)

you can do it using your winscp or ftp or even you can do it using putty
chmod 0777 your_uploads_directory_path

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.