By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

Reading a file via an UNC path

P: 3
Hello,

I've 2 Windows XP systems, system A and system B.
I've a file on system B that I want to read from out a PHP script on system A.
I mapped the drive from system B in my system A like \\10.10.212.15\d$ to a drive Y on system A.

in my PHP script I tried already a lot of things to access the files on this Y drive, but without success.
such as if(file_exists("Y:\\HEAT\\TC0039\\MacroSequence.tx t"))
if(file_exists("\\\\10.10.212.15\\D\$\\HEAT\\TC003 9\\MacroSequence.txt"))
if(file_exists("\\\\heat01\\D\$\\HEAT\\TC0039\\Mac roSequence.txt"))
etc ...
but they all return a false however the file is indeed located at that location

ANybody that could help me out ?

Eric
Feb 15 '08 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
Just to be sure: are your 2 systems on a server or on your client with a server installed?

Ronald
Feb 15 '08 #2

P: 3
Hello,

To be more concrete :

I've on system A a PHP script that's called via a POST request as a server script.
This script uses the above described drive for some input. As long as this
MacroSequence.txt file is located on the machine A itself, there is no problem.
From the moment I want to access it from another system it's failing as
described above.
The MacroSequence.txt is just a pure xml file.

Hope this clarifies the issue a bit more ...

btw thanks for the quick reply
Feb 17 '08 #3

P: 3
anybody that could help me out ???
Feb 19 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.