473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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\catalog

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.txt";

if (file_exists($fname))
{ 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_machinename.

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

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
Jul 17 '05 #1
0 4487

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Anthony Boudouvas | last post by:
Hi to all, is there a way to access a mapped network drive from a Windows Service application ? I created a very simple one, using a timer that checks for a file existance on G:\Emails (a...
1
by: Gacu | last post by:
Hi! Have you met any problems with running C# program from network mapped drive? Of course I have .net framework installed on both machines. When I copy program file to local disk it works...
3
by: Bonj | last post by:
I have a service which is a Windows Service, but it is running under a User account - I enter my own credentials on installing. It can access network files by specifying the full UNC path, i.e....
5
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a...
2
by: Dave Stewart | last post by:
I am attempting to write a vb.net windows service that will automate various file movements on my network. When I attempt to access files on a mapped drive or UNC file share, I get exceptions...
1
by: Dave | last post by:
Hello all, I have an application that is accessing files from a mapped drive. I have full access to the share that is mapped and from explorer can delete files as I need. My application needs to...
4
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
4
by: frikk | last post by:
I previously posted about accessing SharePoint over the web. Well I have since given up any easy means of doing this, since something else has perked my interest. Instead of going to...
1
by: dkultasev | last post by:
Hello, I developed the program for multi use. The program reads data from the text file and puts modified data back to another file. This program was uploaded to mapped network drive. When I try...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.