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