Re: Fw: [PEAR] is there anyone help me?

From: Date: Mon, 15 Mar 2004 10:42:34 +0000
Subject: Re: Fw: [PEAR] is there anyone help me?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11300@lists.php.net to get a copy of this message
Mikko Yue wrote:
the following is the result. The constructor method of class FileTest is running! this is the first line of the file text.txt The deconstructor method of class FileTest is running! Warning: fopen("text.txt", "w") - Permission denied in /www/hr/www/mikko/test/test.php on line 42 Try 'chown' the php script that you call in your browser to the user:group of your webserver (e.g. wwwrun or www-data) --> look in the Apache configuration.
It may also work if you 'chmod 777 text.txt', but that is not really secure ;-) Hope that helps, regards, Matthias
the following is the result when I run the program as root in the console. # php test.php X-Powered-By: PHP/4.2.2 Content-type: text/html <p><b>The constructor method of class FileTest is running!</b></p> this is the first line of the file text.txt <p><b>The deconstructor method of class FileTest is running!</b></p> Best Regards. Mikko Yue


« previous php.pear.general (#11300) next »