I have already posted a similar question. The error i aim getting here is regarding the fgets function. I belive the code is ok but i get the error: Warning: Wrong parameter count for fgets() in c:\apache\htdocs\test.php on line 15. Can you please test code and let me no how to fix error? I have pasted the code below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Read and display file content</title>
$fileName = "testReadFile.txt";
$file = fopen($fileName, "r") or exit("Unable to open file!");
echo fgets($file). "<br />";
Speedy response is as always very much appreciated!