help needed urgently

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

Post Reply
prithvim
Forum Newbie
Posts: 16
Joined: Fri Apr 16, 2004 3:34 pm
Location: India
Contact:

help needed urgently

Post by prithvim »

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 »

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
User avatar
MarK (CZ)
Forum Contributor
Posts: 239
Joined: Tue Apr 13, 2004 12:51 am
Location: Prague (CZ) / Vienna (A)
Contact:

Post by MarK (CZ) »

First, I think that you are not using arrays in strings correctly.
Second, the stream resource was probably not assigned correctly to $fp.
prithvim
Forum Newbie
Posts: 16
Joined: Fri Apr 16, 2004 3:34 pm
Location: India
Contact:

Post by prithvim »

please go to this thread to view the entire code:

viewtopic.php?t=21006
Post Reply