Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permissions problems with PHP and IIS 5.1 on Win XP

Status
Not open for further replies.

Guggly

Programmer
Joined
Jan 18, 2004
Messages
110
Location
US
Hi, not sure if perhaps I should be posting this in a Windows forum, but since switching from W2K to Win XP Pro SP1 I'm having trouble creating files with PHP.

Here's an example of a PHP error I get:

Warning: fopen(c:\test.txt) [function.fopen]: failed to create stream: Permission denied in C:\Data\Web\php\SQL_pulldata.php on line 14
Cannot open file (c:\test.txt)

How can I give the scripts the right permissions on my computer in order to be able to create and write to local files?

For your info, I'm using PHP 4.3.0 on XP Professional SP1 (fully patched) and IIS 5.1 (the one that comes with Windows).

Is this an IIS issue, or something that I need to change in PHP? It worked fine with Windows 2000.

Thanks for any help -- Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top