JSP Hosting
 

HostingServicesSupportOrderAbout UsSoftwareHome


Even experts read the manuals. Our tech support staff has most of the books that are out on a wide variety of web topics. Here are some of their top picks. We think you'll find them useful and informative as well.



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.

File Reading

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:

  User Group All
Read x x x
Write x    
Execute x x x

File Writing

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:

  User Group All
Read x x x
Write x x x
Execute x x x

File Creation

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.

  User Group All
Read x x x
Write x x x
Execute x x x

 

Back To CGI-Tips

 


Note:
MMA technical support staff cannot provide troubleshooting of problems with third-party CGI scripts including but not limited to: Perl scripts, C/C++ binaries, PHP or web/database integration unless these services are specifically contracted. For these services, please see our Quote Request Form.

      

Copyright © 1995-2012
Motivational Marketing Associates, LLC
All Rights Reserved.