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

From: Date: Thu, 24 May 2007 09:28:08 +0000
Subject: Re: Cannot access file on Network Drive (Windows 2003)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255502@lists.php.net to get a copy of this message
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

« previous php.general (#255502) next »