Teonnyn wrote:I was told both upload script and directory need to be 777
Incorrect. The upload script should be 0644 and the directory as 0777. There are few circumstances where you should use different values.
Teonnyn wrote:And finally... how do I check to see if it's allowed? It should be, the server I am running from is a shared hosting and I'm in control of most of the functions on my account.
If what's allowed? I'm talking about the file being uploaded, as in: Are you allowing people to only upload images? Only documents and spreadsheets?
If there should be some restriction on what people can and cannot upload then the PHP script needs to check for it. At the very least the file uploaded must not be a PHP file, otherwise somebody could run their own PHP code on your server - which, needless to say, is very bad.
Teonnyn wrote:[Sun Jan 11 03:03:13 2009] [error] [client 72.234.244.122] File does not exist: /home/****/public_html/500.shtml
This means the server is configured to show a custom error response with the 500.shtml file. However it doesn't exist. Don't worry about this error.
Teonnyn wrote:[Sun Jan 11 03:03:13 2009] [error] [client 72.234.244.122] Premature end of script headers: /home/****/public_html/system/flash/upload.php
You should never see this error pop up while using PHP. It means something bad happened and PHP itself broke when trying to run your file. Good news is that odds are something outside of PHP made it happen - for example, antivirus software or security settings.
Teonnyn wrote:SoftException in Application.cpp:238: File "/home/geekcard/public_html/system/flash/upload.php" is writeable by group
In this case it was the latter of those two possibilities: there is a restriction on the machine that some types of files (including your upload.php) cannot be "writable by group".
Permissions look like 0ABC where A represents the owner ("User"), B represents the user group they belong to ("Group"), and C is for everybody else ("Other"). Right now, A=7 B=7 and C=7. Those numbers are the result of some addition: 4+2+1. 4 means that something can be read, 2 means it can be written to, and 1 means it can be executed.
For Group to write to something, B must be 2, 3 (1+2), 6 (2+4), or 7 (1+2+4).
The error says that the file cannot be writable by Group. If that's true it probably can't be writable by Other either. So in effect, that advice you received about giving the script 0777 permissions is what's causing the problem you have now.
Like I said: give your PHP files 0644 permissions and your directories 0777 permissions.