You cannot do this using the drive letter, since network drives with a network connection are designed for only one user and therefore cannot be used by services (even if you must install it for that user).
Instead, you can use the UNC path, for example:
fopen('\\\\server\\share\\text.txt', 'r');
Note, however, that there are several issues with accessing the PHP file system for UNC paths. One example is the error I filed for imagettftext , but there are also problems with file_exists and is_writeable . I did not report this to the latter, because, as you can see from my long-standing error with imagettftext , which point.
Rudi visser
source share