lunny Posted March 14, 2007 Share Posted March 14, 2007 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 ? Link to comment https://forums.phpfreaks.com/topic/42732-fwrite-errors-permissions-help/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 // int fwrite ( resource $handle, string $string [, int $length] ) $fp = fopen($filename, 'w+'); fwrite($fp,"Some text"); http://us2.php.net/manual/en/function.fwrite.php Sometimes knowing the correct parameters to pass can help out a ton. Use www.php.net as a reference for that type of stuff. --FrosT Link to comment https://forums.phpfreaks.com/topic/42732-fwrite-errors-permissions-help/#findComment-207322 Share on other sites More sharing options...
boo_lolly Posted March 14, 2007 Share Posted March 14, 2007 your problem involves permissions. google the error and see what information you can find out. Link to comment https://forums.phpfreaks.com/topic/42732-fwrite-errors-permissions-help/#findComment-207323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.