带有Windows共享的file_exists() [英] file_exists() with Windows share
问题描述
在Win2K服务器上运行带有IIS的PHP5
每当我在另一个
服务器上的Windows共享文件上尝试file_exists()时,我得到一个回答错误 - 我无法打开文件或做任何事情
。我确定文件名/路径是好的
$ filename =
''// print-admin / Public $ / planningprepress / planning / prepresslist .xls''
我试过用chr(92)替换所有''/'无效。到目前为止我发现的唯一的
信息只是说对于Windows共享使用
//服务器/共享/文件这是我拥有的和文件夹/文件是
每个人都可以访问。
我缺少什么?
Running PHP5 with IIS on a Win2K Server
whenever I try file_exists() on a file in a windows share on another
server I get a response of False - I can''t open the file or do anything
with it. I''m sure the filename/path is Ok
$filename=
''//print-admin/Public$/planningprepress/planning/prepresslist.xls''
I''ve tried replacing all the ''/'' with chr(92) to no avail. The only
info I have found so far simply says that for Windows shares to use
//server/share/file which is what I have and the folder/file are
accessible by everyone.
What am I missing ?
推荐答案
filename =
''// print-admin / Public
filename=
''//print-admin/Public
/planningprepress/planning/prepresslist.xls''
我试过用chr(92)替换所有''/'无效。到目前为止我发现的唯一的
信息只是说对于Windows共享使用
//服务器/共享/文件这是我拥有的和文件夹/文件是
每个人都可以访问。
我缺少什么?
/planningprepress/planning/prepresslist.xls''
I''ve tried replacing all the ''/'' with chr(92) to no avail. The only
info I have found so far simply says that for Windows shares to use
//server/share/file which is what I have and the folder/file are
accessible by everyone.
What am I missing ?
Alan写道:
Alan wrote:
在Win2K服务器上运行带有IIS的PHP5
每当我在另一台服务器上的Windows共享文件上尝试file_exists()时,我得到的响应是错 - 我无法打开文件或用它做任何事情。我确定文件名/路径是好的
Running PHP5 with IIS on a Win2K Server
whenever I try file_exists() on a file in a windows share on another
server I get a response of False - I can''t open the file or do anything
with it. I''m sure the filename/path is Ok
这篇关于带有Windows共享的file_exists()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!