Hi I am trying to troubleshoot why I cannot get files to upload to my CentOS machine running on EC2 and think it may be a permissions problem (as I have gleamed from previous questions). How do I check what privileges my PHP installation has for writing files. The directory that I want to write files to has been created in the same folder as the PHP scripts that are trying to write the files and the rights for this folder is rwxr-xr-x. The owner of the folder is root. The owner of the PHP files trying to write the uploaded files is root also.
When the PHP file attempts to write the bytearray data that it is sent I get the following error message - file_put_contents failed to open stream: No such file or directory in ...
How should i reference the directory in which I want to save the file - absolute or relative? What else am I doing wrong?
cheers