Reading a file $filename = "data.txt"; $filesize = filesize($filename); $file = fopen( $filename, "r" ); $text = fread( $file, $filesize ); fclose( $file ); echo( "File Size: $filesize bytes" ); echo( "$text" ); ?>
$text