Need help with permissions!
Posted: Wed May 15, 2002 11:01 am
I am trying to get a script running on my host that creates or overwrites a small text file on my hosts web server. I am using the command fp$=fopen("test.txt", "w") and all I get back is the error Warning: fopen("test.txt", "w") - Permission denied in /usr/local/psa/home/vhosts/milltech-php.com/httpdocs/scripts/submit.php on line 9
If I use the "r" parameter instead then its quite happy!
The system is running PHP v4.1.0 on Apache and phpinfo.php returns the following for configuration " './configure' '--with-apxs=apxs' '--prefix=/home/builder/psa-dummies/psa/apache/../release/usr/local/psa/apache' '--with-system-regex' '--with-config-file-path=/usr/local/psa/apache/conf' '--disable-debug' '--disable-pear' '--enable-sockets' '--enable-track-vars' '--without-gd' '--with-mysql=/home/builder/psa-dummies/psa/apache/../release/dist/usr/local/psa/mysql' '--with-iodbc=/home/builder/psa-dummies/psa/apache/../release/lib/libiodbc' '--with-imap=/home/builder/psa-dummies/psa/apache/../release/lib/imap-cclient'"
Any help you might be able to give me to tell me whats going wrong or what permissions aren't right here would make me extremely gratefull!
Thanks
Tim west
If I use the "r" parameter instead then its quite happy!
The system is running PHP v4.1.0 on Apache and phpinfo.php returns the following for configuration " './configure' '--with-apxs=apxs' '--prefix=/home/builder/psa-dummies/psa/apache/../release/usr/local/psa/apache' '--with-system-regex' '--with-config-file-path=/usr/local/psa/apache/conf' '--disable-debug' '--disable-pear' '--enable-sockets' '--enable-track-vars' '--without-gd' '--with-mysql=/home/builder/psa-dummies/psa/apache/../release/dist/usr/local/psa/mysql' '--with-iodbc=/home/builder/psa-dummies/psa/apache/../release/lib/libiodbc' '--with-imap=/home/builder/psa-dummies/psa/apache/../release/lib/imap-cclient'"
Any help you might be able to give me to tell me whats going wrong or what permissions aren't right here would make me extremely gratefull!
Thanks
Tim west