PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
prithvim
Forum Newbie
Posts: 16 Joined: Fri Apr 16, 2004 3:34 pm
Location: India
Contact:
Post
by prithvim » Fri Apr 16, 2004 4:59 pm
can anyone tell me what is wrong with the code below?
Code: Select all
if(fwrite($fp,"$_POSTїuserid]\n$_POSTїpassword]\n$_POSTїname]\n$_POSTїemail]\n"))
prithvim
Forum Newbie
Posts: 16 Joined: Fri Apr 16, 2004 3:34 pm
Location: India
Contact:
Post
by prithvim » Fri Apr 16, 2004 5:02 pm
i get the following error when i run the script:
Code: Select all
Warning: fwrite(): supplied argument is not a valid stream resource in /home/prithvim/public_html/blogtest/signup.php on line 38
MarK (CZ)
Forum Contributor
Posts: 239 Joined: Tue Apr 13, 2004 12:51 am
Location: Prague (CZ) / Vienna (A)
Contact:
Post
by MarK (CZ) » Fri Apr 16, 2004 5:07 pm
First, I think that you are not using arrays in strings correctly.
Second, the stream resource was probably not assigned correctly to $fp.