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

2007-05-25 Thread Rahul Sitaram Johari

At this point having gone through all sorts of permissions and running
Apache as User and what not - I'm pretty close to giving up myself.
Fortunately I do have other alternates to running this particular
application - but it would have helped if things worked.


On 5/24/07 6:23 PM, David Giragosian [EMAIL PROTECTED] wrote:
 
 I had a similar problem with a mysqldump file that I was trying to copy
 over, via a script, to a networked drive. The networked drive was on
 a Novell share, and I could see it and copy just fine using windows explorer
 but nothing I did ever allowed me to copy via the script. I even had Apache
 installed as a service on the windows box and had all permissions as open as
 possible on all directories just to test. I finally gave up and did it from
 a Linux server using ncpfs to mount the Novell drive.
 
 FWIT,
 
 David

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



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

2007-05-24 Thread Stut

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



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

2007-05-24 Thread Rahul Sitaram Johari

Ave,

UNC paths didn't work, i.e., (server\\share\\Transfer\\test.dbf).
I have no clue how to Run Apache as a particular User on Windows! I
installed Apache using the Installer available - but I really don't know
anything else 'user' related about Apache.

Both SYSTEM and the Computer I'm running all this on have Full Control
Permissions to the Network Share.


On 5/24/07 5:28 AM, Stut [EMAIL PROTECTED] wrote:

 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



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

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 1:46 pm, 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?

Check permissions on that drive/share/file/directory?...

Google for PHP Network Drive and see if others have the same problem.

For all I know, the dang thing is just broken.  It is Windows, after
all. :-)

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



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

2007-05-24 Thread David Giragosian

On 5/24/07, Richard Lynch [EMAIL PROTECTED] wrote:


On Wed, May 23, 2007 1:46 pm, 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?

Check permissions on that drive/share/file/directory?...

Google for PHP Network Drive and see if others have the same problem.

For all I know, the dang thing is just broken.  It is Windows, after
all. :-)



I had a similar problem with a mysqldump file that I was trying to copy
over, via a script, to a networked drive. The networked drive was on
a Novell share, and I could see it and copy just fine using windows explorer
but nothing I did ever allowed me to copy via the script. I even had Apache
installed as a service on the windows box and had all permissions as open as
possible on all directories just to test. I finally gave up and did it from
a Linux server using ncpfs to mount the Novell drive.

FWIT,

David


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

2007-05-23 Thread Jim Lucas

Rahul Sitaram Johari wrote:

Didn't help. Tried X:\\Transfer\\test.dbf
Still can't access the file.


On 5/23/07 3:11 PM, Tijnema [EMAIL PROTECTED] wrote:


The \ is an escape token, and you should use \\ instead.

Try X:\\Transfer\\test.dbf instead.

Tijnema

ps. Please don't top post.



Try a single forward slash

X:/Transfer/test.dbf

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



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

2007-05-23 Thread Jim Lucas

Rahul Sitaram Johari wrote:

Ave,

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


echo gettype($db);

what does this return?



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

Thanks.


~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.

W: http://www.rahulsjohari.com
E: [EMAIL PROTECTED]

³I morti non sono piu soli ... The dead are no longer lonely²





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



[PHP] Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Rahul Sitaram Johari

Ave,

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?

Thanks.


~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.

W: http://www.rahulsjohari.com
E: [EMAIL PROTECTED]

³I morti non sono piu soli ... The dead are no longer lonely²



RE: [PHP] Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jay Blanchard
[snip]
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?
[/snip]

Have you checked the permissions?

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



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

2007-05-23 Thread Rahul Sitaram Johari

Well, Full Permissions (Full Control, including read  write) have been
given to the Machine on which the Apache Web Server is setup. Not sure if
anything else needs to be done!


On 5/23/07 3:02 PM, Jay Blanchard [EMAIL PROTECTED] wrote:

 [snip]
 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?
 [/snip]
 
 Have you checked the permissions?
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

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



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

2007-05-23 Thread Tijnema

On 5/23/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote:


Well, Full Permissions (Full Control, including read  write) have been
given to the Machine on which the Apache Web Server is setup. Not sure if
anything else needs to be done!


The \ is an escape token, and you should use \\ instead.

Try X:\\Transfer\\test.dbf instead.

Tijnema

ps. Please don't top post.



On 5/23/07 3:02 PM, Jay Blanchard [EMAIL PROTECTED] wrote:

 [snip]
 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?
 [/snip]

 Have you checked the permissions?

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


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




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



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

2007-05-23 Thread Rahul Sitaram Johari

Didn't help. Tried X:\\Transfer\\test.dbf
Still can't access the file.


On 5/23/07 3:11 PM, Tijnema [EMAIL PROTECTED] wrote:

 The \ is an escape token, and you should use \\ instead.
 
 Try X:\\Transfer\\test.dbf instead.
 
 Tijnema
 
 ps. Please don't top post.

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