|
-
Apr 7th, 2007, 03:35 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Help error
i've got this error on my page,
PHP Code:
Warning: fclose(): supplied argument is not a valid stream resource in
what's the problem? and the solution?
tanks
-
Apr 7th, 2007, 04:47 AM
#2
Re: Help error
.. well, if it isn't obvious, you're using the function wrong. post the code you're using, otherwise no one can help you.
-
Apr 7th, 2007, 05:47 AM
#3
Thread Starter
Frenzied Member
Re: Help error
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);
?>
-
Apr 7th, 2007, 07:32 AM
#4
Re: Help error
Spot the difference.
 Originally Posted by met0555
<?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);
?>
-
Apr 7th, 2007, 07:45 AM
#5
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|