Wrong parameter count for fwrite()
Posted: Tue Mar 03, 2009 5:14 pm
Here is my test codes:
Here is the output?
Let me see if this works.
Warning: Wrong parameter count for fwrite() in ... on line 7
Wow, amazing!
Warning: Wrong parameter count for fwrite() in ... on line 7
This is so exciting.
Warning: Wrong parameter count for fwrite() in ...p on line 7
What did I do wrong?
Code: Select all
<?php
$test_file = "test".date("mdy").".htm";
$fh = fopen($test_file, 'w') or die("can't open file");
function echoWrite($mystring) {
echo $mystring;
fwrite($fh = $mystring . "\n");
}
echoWrite("Let me see if this works.");
echoWrite("Wow, amazing!");
echoWrite("This is so exciting.");
fclose($fh);
?>Let me see if this works.
Warning: Wrong parameter count for fwrite() in ... on line 7
Wow, amazing!
Warning: Wrong parameter count for fwrite() in ... on line 7
This is so exciting.
Warning: Wrong parameter count for fwrite() in ...p on line 7
What did I do wrong?