[vn-tech] PHP mkdir with IIS and network share
Dang Nguyen
Dang.Nguyen at marconi.com
Thu Nov 13 10:13:19 PST 2003
Hi All,
I have a PHP script that was carried over from an Apache/Solaris environment
into a Windows 2000/IIS/PHP 4.3.4 environment. Now I need to tweak the
script a little to deal with the file system differences. The script, as
originally designed and written, can read files from the file system, create
directories, write files back to the file system, etc. After moving to the
Windows environment, the script is now required to access files on a network
share and create files and directories over the network share. I've figured
out how to configure IIS so that PHP scripts will be able to read, using
opendir(), readdir(), etc., from the network share. However, after the
reconfiguration of IIS, my scripts still cannot create directories over the
network share. No errors are getting written to my error log file either.
I have reconfigured IIS to use an account that has read and write
permissions on the network share when "anonymous" access is used, which is
how the scripts can now read and list files on the network share. Does
anyone have any other suggestions for me to check or do so that the scripts
can also create files and directories on the network share?
code snippet:
$directory = '\\\\seint16\\nt_share\\';
mkdir($directory,0755);
Dang Nguyen
dang.nguyen at marconi.com
Marconi Wireless
Direct Phone: 425-519-2043
Fax: 425-519-7280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.saigon.com/pipermail/vn-tech/attachments/20031113/9e9f9028/attachment.htm
More information about the vn-tech
mailing list