Re: Cannot access file on Network Drive (Windows 2003)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rahul Sitaram Johari wrote:
Apache 2.2, PHP5 & mySQL 5 on Windows 2003.
I have some files sitting on a Network Drive accessible on the Windows 2003
Server. But my php script is not able to open the files.

Let¹s say there¹s a database on X:\Transfer\test.dbf
If I use:

$db = dbase_open(³X:\Transfer\test.dbf², 0);

It is not able to open the database. The X: Drive is a network drive.
Any clues on how to make this happen?

I assume you've mapped drive X to the network share for the user that Apache runs as? If not are you really surprised that it can't find that file?

Try using the UNC path ("\\\\server\\share\\Transfer\\test.dbf") [note double backslashes]. If that still doesn't work then it's likely a permissions issue.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux