0

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.....

Edited by hassancool: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by saiprem
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.