I'm a PHP n00b but followed the instructions as per this excellent tut:
PHP Tizag file upload tutorial
However, whilst this worked perfectly on my Mac (OSX 10.8) running the default built-in Apache, it fails and doesn't work on a CentOS 6 box. Looking through the Apache logs I get this:
failed to open stream: No such file or directory
The permissions have been set to 777 on the "uploads" folder which is in the root of /var/www/html (on the mac it's /Library/Webserver/Documents)
[Tue Apr 30 13:05:11 2013] [error] [client (My IP Address)] PHP Warning: move_uploaded_file(uploads/Today notes.txt): failed to open stream: No such file or directory in /var/www/html/test/uploads3.php on line 8, referer: ht*p://serverip.myserver.com/test/form4.html
[Tue Apr 30 13:05:11 2013] [error] [client (my IP address)] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpc8AGo8' to 'uploads/Today notes.txt' in /var/www/html/test/uploads3.php on line 8, referer: ht*p://serverip.myserver.com/test/form4.html
Am I missing some setting in PHP or Apache to enable this to work properly?
Many thanks in advance.