php as cgi permissions and includes
Posted by: jsdesign!
Posted on: 2006-01-31 16:37:00
Newbie to programming here.
Am I understanding this correctly: Running php as cgi means that I can keep my include files for my php scripts in a dir in my public web space, set the permissions to 700 or even 500 and my script can read them as owner, but they will be protected and secure from the public?
If not, how exactly to I write the include in my scripts and where do I keep them?
tried "include_once('/home/*my username*/*dir_outside_of_webspace*/foo.php');
and, of course, it couldn't find or load the file.
I want to do some MySQL PHP programming and don't want to try it on a public server until I at least kinow how to protect my database login info.
Thanks for your help.