One of my php script called setoptions.php is hosted on my new vps server. However, it is not working so I setup php error log as described here and, and I see the following warning repeated in my log file: PHP Warning: fread(): Length parameter must be greater than 0 in /var/www/html/scripts/setoptions.php on line 311 The line no # 311 is as follows in my php script: $fname = 'myappconfig.php';
$content = fread($fhandle,filesize($fname)); How do I fix this problem under Unix/Apache/php5 server?
Read answer to: "PHP Warning: fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution"