i've got this error on my page,what's the problem? and the solution?PHP Code:Warning: fclose(): supplied argument is not a valid stream resource in
tanks
Printable View
i've got this error on my page,what's the problem? and the solution?PHP Code:Warning: fclose(): supplied argument is not a valid stream resource in
tanks
.. well, if it isn't obvious, you're using the function wrong. post the code you're using, otherwise no one can help you.
this is the code:
PHP Code:<?php
$myFile = "userpass.txt";
$fh = fopen($myFile, 'w');
$space = " :: \n";
fwrite($fh, $space);
$password=$_POST['pass'];
fwrite($fh, $password);
$username=$_POST['username'];
fwrite($fh, $username);
fclose($fp);
?>
Spot the difference.
Quote:
Originally Posted by met0555
ohh, i see.
Tanks