Reading a file via an UNC path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • be082546
    New Member
    • Feb 2008
    • 3

    Reading a file via an UNC path

    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\\TC00 39\\MacroSequen ce.txt"))
    if(file_exists( "\\\\10.10.212. 15\\D\$\\HEAT\\ TC0039\\MacroSe quence.txt"))
    if(file_exists( "\\\\heat01\\D\ $\\HEAT\\TC0039 \\MacroSequence .txt"))
    etc ...
    but they all return a false however the file is indeed located at that location

    ANybody that could help me out ?

    Eric
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Just to be sure: are your 2 systems on a server or on your client with a server installed?

    Ronald

    Comment

    • be082546
      New Member
      • Feb 2008
      • 3

      #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.t xt 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.t xt is just a pure xml file.

      Hope this clarifies the issue a bit more ...

      btw thanks for the quick reply

      Comment

      • be082546
        New Member
        • Feb 2008
        • 3

        #4
        anybody that could help me out ???

        Comment

        Working...