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 ? Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/42732-fwrite-errors-permissions-help/#findComment-207323 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.