Wednesday, February 23, 2011

Get file contents in a single variable

echo $file = file_get_contents("index.php");
print("Size of the file: ".strlen($file)."\n");

No comments:

Post a Comment