Forum Moderators: coopster

Message Too Old, No Replies

Problem writing files

creating new files

         

threebytes

2:16 pm on Dec 13, 2003 (gmt 0)

10+ Year Member



i have working perfectly with file creating and file writing on my computer with php script(win2k). but i have problem when i uploaded to my web host (probably there were using linux)

i got an error warning fwrite(0: supplied argument is not a valid steam resource in /home/er/public_html/games/install.php on line

which i think it have something to do with the chmod. (file permission) i am newbie, i would like to ask any of you, how should i fix this?

threebytes

2:24 pm on Dec 13, 2003 (gmt 0)

10+ Year Member



i think i got the answer is it i just have to change the file permission to 777?

NickCoons

3:13 pm on Dec 13, 2003 (gmt 0)

10+ Year Member



You can also try changing ownership of the directory that holds the file you're writing to that of the user that runs the web server process.