My script doesn't seem to be reading or writing files.
First make sure you've checked the paths to the files you're reading from or writing to. If your script can't find the files being referenced, reading and writing will never work.
Once you've checked that the paths are correct, login to your account
via FTP and take a look inside the directory where the referenced file
should be. Make sure it's there. If it is, make sure that it is readable
by the script. Set the permissions as follows:
If your script needs to write to a file, you'll need to set the permissions on the actual file to be world-writeable (writeable by "All"). The permissions in this case would be:
If you are creating files from your script, it is best not to attempt to change the default file permissions or UID from within the script. Doing so can result in files which you can't access from your account. If you are writing to a file that may not exist at runtime and is being created on-the-fly, you'll need to make sure the directory containing the file is writeable as follows.
Motivational Marketing Associates, LLC
All Rights Reserved.