You need to make sure that IUSR has permissions on that file. When you call from command line it's using your credentials. When it's from a browser, it's IUSR_MACHINE
Regards, Nick H. [EMAIL PROTECTED] ----- Original Message ----- From: "Walter Gyr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 11:46 AM Subject: [PHP-WIN] fopen permission denied > Hi All > > I have update to PHP 4.3.1 W2000, apache 2.0.14 MYSQL 4.0.12 . > > In a php script > > $fp = fopen("i:\\data\\import.txt", "r"); > " Cannot open permission denied....." > > i: is mapped network drive > > > When i call the script from command line it works. > > Can anybody help ? > > > Walter > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php