file_exists problem Windows IIS Network Mapped Drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chann Becker

    file_exists problem Windows IIS Network Mapped Drive

    My current setup:

    WWW Server:
    Windows 2000 Server, SP4
    IIS5
    PHP 4.3.4

    File Server
    Windows 2000 Server, SP4

    WWW has a mapped network drive to an images catalog

    p: = \\file_server\c atalog

    There is a test file there called "file.txt" (p:\file.txt)

    Trying to use file_exists to check for existance of this file. Other
    functions depend on the results.

    code example:

    $fname = "p:\\file.t xt";

    if (file_exists($f name))
    { print "File ". $fname. " EXISTS.<br>"; }
    else
    { print "File ". $fname. " DOES NOT EXIST.<br>"; }

    This function will return correct results when tested on a file on the
    local file system, either c:\file.txt or d:\file.txt.

    It will not return a TRUE value on file p:\file.txt or any other file
    that is on a mapped network drive.

    The permissions on the share are set to FULL CONTROL for EVERYBODY and
    IUSR_machinenam e.

    The permissions on the file are set to FULL CONTROL for EVERYBODY and
    IUSR_machinenam e.

    Any ideas?

    I've read all the forums on php.net, devshed, phpbuilder, and anything
    that GOOGLE returns.

    Apearently there was a BUG 2 years ago, but since has been fixed. Not
    that I could tell.

    Chann
Working...