Reading a php file and outputting contents
Posted: Sun Sep 28, 2003 2:13 pm
I'm trying to output the contents of a php file. I have the file users.php with a whole bunch of stuff in it. I have this code to get the contents of the file, but it doesnt show anything. Any ideas?
Code: Select all
<?php
$filename = "users.php";
$handle = fopen ($filename, "r");
$content = fread ($handle, filesize ($filename));
fclose ($handle);
echo $content;
?>