Re: php not reading file properly

From: Date: Wed, 20 Aug 2008 19:35:14 +0000
Subject: Re: php not reading file properly
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-278420@lists.php.net to get a copy of this message
sean greenslade a écrit :
    $fh = fopen($myFile, 'r');
Here, they are some return code to ckeck.
but not when I access it thru the web. when I browse to it, it just displays the static text ("This weeks apache log (clears every sunday morning):"), not the log text.
Who owned /var/log/httpd/access_log ? What mode accesses on the file ? What user runs the webserver (www-data, apache, someunprivileged) ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org

« previous php.general (#278420) next »