Page 1 of 1

Error With File Functions

Posted: Sun Mar 30, 2003 4:48 pm
by Little Spy
Warning: fopen(db/entries.xml) [function.fopen]: failed to create stream: Permission denied in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 76

Warning: fputs(): supplied argument is not a valid stream resource in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 77

Warning: fclose(): supplied argument is not a valid stream resource in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 78
i am getting that on my windows box but not my linux server, I am running winxp and I think I may need to set some permissions but I am unsure on XP.


edit: The script runs fine with apache but not IIS and I use mainly IIS on my machine for development. So any other IIS users have any contributions?

Posted: Sun Mar 30, 2003 5:16 pm
by volka
make sure db/entries.xml can be read (written too?) by the account used by IIS when executing the script. If it is set to anonymous access the account is IUSR_xyz