file handling

kavitha
08:14:10
The following is my code im getting error as follows:

Fatal error: [quote]Call to undefined function string() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\day5\one.php on line 13[/quote]



<?php
$filename="two.html";
$get=fopen($filename,"r");
$contents=fread($get,string($get));
fclose($get);
echo $contents;

?>
smo1234
08-14-2010
Change this line
$contents=fread($get,filesize($filename));
There is no function as string.
kavitha
08-14-2010
thank u for ur reply.i corrected it
Please Login to post your reply or start a new topic