PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I had code that worked under windows/apache2/php5, gentoo linux/apache2/php5, now im running it under freebsd 5.3/apache2/php5.
I get the error
Warning: move_uploaded_file(/usr/local/www/xxxxxx/script/temp/galleries/X4zV7eJ1j.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/local/www/xxxxxx/script/admin/add_gallery.php on line 118
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/php6KQ2pb' to '/usr/local/www/xxxxxx/script/temp/galleries/X4zV7eJ1j.zip' in /usr/local/www/xxxxxx/script/admin/add_gallery.php on line 118
The var/tmp folder is chmodded 777, as well as the destination directory. Ive double checked the destination directory, even hard coded it, and still no luck. Any idea whats going on?