Jump to content

Fatal error...


aamirshah

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.