Forum Moderators: coopster
fwrite(): supplied argument is not a valid stream resource
and
fclose(): supplied argument is not a valid stream resource
I'm just trying to write to a flat file on the server, i'm a php newbie.
the user that php runs as is not necessarily the same user you were acting as when you created the file
if the owner is different then the permissions of the file need to be changed for another user to change that file
you can test your file pointer after you try to open the file to see if it was successfully opened, if it was not then try changing the permissions on the file and running the script again.