PHP Image upload error

When uploading to the site I receive the PHP error message:

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 303682/100 is not allowed to access /home/s/sergi/www/gallery/albums/sergi-staff-members owned by uid/gid 80/80 in /home/s/sergi/www/gallery/zen/admin.php on line 114

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 303682/100 is not allowed to access /home/s/sergi/www/gallery/albums/sergi-staff-members owned by uid/gid 80/80 in /home/s/sergi/www/gallery/zen/admin.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /home/s/sergi/www/gallery/zen/admin.php:114) in /home/s/sergi/www/gallery/zen/admin.php on line 128

I have checked the permissions with the album and cache files which are set 777.

Help is greatly appreciated.

Thanks

Comments

  • i also get an error
  • trisweb Administrator
    Your host has enabled PHP Safe Mode, which doesn't allow scripts to move files from the temp directory to a user directory.

    Unfortunately there's no way around this, and you'll have to use FTP or another file transfer method to get the images onto the server, which I usually prefer anyway -- it's faster for multiple images.
  • Thanks for the help. I spoke to the host and had the permissions changed.

    It now works a dream. Very happy with it.
Sign In or Register to comment.