fopen() throwing a 500 error
Posted: Wed Sep 06, 2006 5:24 am
Just playing with a script to edit .htpasswd that is safely above public_html on an apache server.
When the script is in the root works fine
When the script is in the next directory down throws a 500 server error.
Any idea why???
When the script is in the root
Code: Select all
$fh=fopen("../.htpasswd",w);When the script is in the next directory down
Code: Select all
$fh=fopen("../../.htpasswd",w);Any idea why???