aamirshah Posted March 30, 2007 Share Posted March 30, 2007 hi there all. This is my first post. I wanna solve this problem" Fatal error: Unable to read 10898 bytes in /home/asdasd/public_html/_include/lib/lib.php on line 0" can anyone help me. Thanx in advance... Link to comment https://forums.phpfreaks.com/topic/44942-fatal-error/ Share on other sites More sharing options...
kenrbnsn Posted March 30, 2007 Share Posted March 30, 2007 We can't help you without seeing your code. Please post it between tags. Ken Link to comment https://forums.phpfreaks.com/topic/44942-fatal-error/#findComment-218224 Share on other sites More sharing options...
rcorlew Posted March 30, 2007 Share Posted March 30, 2007 Are you trying to fopen() and fread(), if so you need to set the filesize. The exact code to this is this: <?php // get contents of a file into a string $filename = "/usr/local/something.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); ?> Link to comment https://forums.phpfreaks.com/topic/44942-fatal-error/#findComment-218225 Share on other sites More sharing options...
aamirshah Posted March 30, 2007 Author Share Posted March 30, 2007 the file is zend optimized. And its Abledating's file. Link to comment https://forums.phpfreaks.com/topic/44942-fatal-error/#findComment-218280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.