Help - Search - Members - Calendar
Full Version: Help With A Noob Question.
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
TylerN
I'm getting this error when trying to upload files using my websites php file.

CODE
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access /home/overdose/public_html/clanfiles/uploads/shraps.OD.2Paranoid Android1.0o.scx in /www/clanteam.com/x/d/r/xdrx/htdocs/uploaderScripts.php on line 72


file is called (2)Paranoid Android1.0(o).scx, it automatically removes offending characters btw so don't say that's it.

this is uploader.php:
http://pastesite.com/beta/1126

uploaderScripts.php here:
http://pastesite.com/beta/1127
Ed
Your path to the directory is incorrect, your script lists it as:

CODE
/home/overdose/public_html/clanfiles/uploads/


It should be:

CODE
/www/clanteam.com/x/d/r/xdrx/htdocs/uploads/
TylerN
so i just need to have the directory uploads? (From the root directory?)

now i get this warning/error

Warning: move_uploaded_file(/www/clanteam.com/x/d/r/xdrx/htdocs/uploads/shraps.OD.2Paranoid Android1.0o.scx) [function.move-uploaded-file]: failed to open stream: Permission denied in /www/clanteam.com/x/d/r/xdrx/htdocs/uploaderScripts.php on line 72

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpMVmMI4' to '/www/clanteam.com/x/d/r/xdrx/htdocs/uploads/shraps.OD.2Paranoid Android1.0o.scx' in /www/clanteam.com/x/d/r/xdrx/htdocs/uploaderScripts.php on line 72

rofl, my bad. It would help if i set the proper permissions first.

Thank you for your help. It works now!!!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.