Let me start out by saying that I am relatively new to PHP and Solaris Unix, which happen to be the main part of my question.
I'm trying to use PHP to open an HTML file, change a few lines of code, write the changes to the file, and exit. This all works fine except for the opening/closing a file part. when I use fopen() I get a permission denied warning from my PHP script.
From what I understand about the server PHP runs as "nobody", and all of the files in the export/home/other/www directory are owned by user "www" who has read/write permissions to export/home/other/www and all of it's subdirectories. What is a viable way to allow PHP to have read/write access to certain files without opening up a huge security hole? Any help is appreciated
Wyatt McGuire
Penn State York
Senior Assistant Webmaster