Heya - need some help I'm afraid - I get the following error with a simple file upload script:
Warning: move_uploaded_file(G:/Inetpub/wwwroot/futureinnovation/readme.txt) [function.move-uploaded-file]: failed to create stream: Permission denied in g:\inetpub\wwwroot\futureinnovation\upload.php on line 8
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'G:\WINDOWS\TEMP\php51.tmp' to 'G:/Inetpub/wwwroot/futureinnovation/readme.txt' in g:\inetpub\wwwroot\futureinnovation\upload.php on line 8
The thing is, obviously I don't allow upload rights to my windows temp folder, but I've changed the temporary upload folder in php.ini as below...
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = G:\Inetpub\wwwroot\phptemp
Any ideas how to solve this? Is there something wrong with my php.ini? Is there a line I can add to the actual upload.php script which forces a different temp upload dir to the default?
Your help is invaluable - I'm very new to all this but doing my best!