Page 1 of 1

fwrite() errors - Permissions Help

Posted: Wed Mar 14, 2007 1:21 pm
by lunny
Basically im tyring to dynamically create URLs for special users so they get their own URL.

Creating the page worked fine using

fopen($filename, 'w+');

But when I try to write something this page using

fwrite($filename,"Some text");

I get the following error

Warning: fwrite(): supplied argument is not a valid stream resource in...

Any ideas ?

Posted: Wed Mar 14, 2007 1:57 pm
by feyd
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.

Posted: Wed Mar 14, 2007 4:27 pm
by s.dot
fopen($filename, 'w+');

to

fopen($filename, "w+");