|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-13 04:57 UTC] jsbruns at selectionsheet dot com
Description:
------------
I'm running windows 2003 server and have several mapped drives within my network. I'm trying to access a file on a drive mapped as F:\
I can access the drive from windows explorer and am running apache as a service under an administrative user that has proper permissions.
I've tried a variety of connection methods including specifying the drive letter, the server name and the IP address. All with no success. Any help would be appreciated.
Reproduce code:
---------------
$dbh = opendir("F:\W_54620.DBF","r");
$dbh = opendir("\\server02\W_54620.DBF","r");
failed to open dir: Invalid argument in C:\httpd\dbf_class.php on line 2
Expected result:
----------------
Provide a valid object after successful file open.
Actual result:
--------------
Unable to open stream to file on network drive.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 13:00:01 2025 UTC |
Thanks for your reply, however I have tried using a variety of methods, including escaped backslashes within double quotes and single backslash within single quotes. I am still unable to open a file/dir on a mapped network drive. $dbf = fopen('F:\W_54602.DBF','rb'); Warning: fopen(F:\W_54602.DBF) [function.fopen]: failed to open stream: No such file or directory in C:\httpd\dbf_class.php on line 2