Error With File Functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Little Spy
Forum Commoner
Posts: 31
Joined: Thu Oct 10, 2002 8:18 pm
Contact:

Error With File Functions

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply