how are files handled in php code example
Example: .php file
<html>
<head>
<title>Reading a file using PHP</title>
</head>
<body>
<?php
$filename = "abc.txt";
$file = fopen( $filename, "r" );
if( $file == false ) {
echo ( "Error in opening file" );
exit();
}
$filesize = filesize( $filename );
$filetext = fread( $file, $filesize );
fclose( $file );
echo ( "File size : $filesize bytes" );
echo ( "<pre>$filetext</pre>" );
?>
</body>
</html>
//This is a php File Yes!!!!!