Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8634201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:39:59+00:00 2026-06-12T09:39:59+00:00

Relative: Mapped Network Drives Service not able to access a mapped drive PHP is_dir

  • 0

Relative:

Mapped Network Drives

Service not able to access a mapped drive

PHP is_dir and mkdir not working on mapped network drive

I know this is very old-school, but I just can’t figure it out…

On a Windows 2003 with wamp (apache 2.2, PHP 5.3.10) run as a service. Following the above link, I’ve already made it run as Administrator instead of SYSTEM. But still no luck.

I made a .bat file to make it clear:

@echo off
whoami
net use
php -r "var_dump(scandir('Z:\\'));"
php -r "var_dump(scandir('\\\\192.168.211.86\\voice'));"
php -r "var_dump(scandir('//192.168.211.86/voice'));"

And if I run it in cmd, the result is:

serv2003\administrator
New connections will be remembered.


Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK           R:        \\192.168.211.86\voice    Microsoft Windows Network
OK           Z:        \\192.168.211.86\voice    Microsoft Windows Network
The command completed successfully.

array(5) {
  [0]=>
  string(1) "."
  [1]=>
  string(2) ".."
  [2]=>
  string(6) "Folder"
}
array(5) {
  [0]=>
  string(1) "."
  [1]=>
  string(2) ".."
  [2]=>
  string(6) "Folder"
}
array(5) {
  [0]=>
  string(1) "."
  [1]=>
  string(2) ".."
  [2]=>
  string(6) "Folder"
}

But if I run it in Apache:

<body><pre>
<?php
echo `C:\path\to\test.bat`;
?>
</pre></body>

it outputs:

serv2003\administrator
New connections will be remembered.


Status       Local     Remote                    Network
-------------------------------------------------------------------------------
Unavailable  Z:        \\192.168.211.86\voice    Microsoft Windows Network
The command completed successfully.


Warning: scandir(Z:\): failed to open dir: No such file or directory in Command line code on line 1

Warning: scandir(): (errno 2): No such file or directory in Command line code on line 1
bool(false)

Warning: scandir(\\192.168.211.86\voice): failed to open dir: No such file or directory in Command line code on line 1

Warning: scandir(): (errno 2): No such file or directory in Command line code on line 1
bool(false)

Warning: scandir(//192.168.211.86/voice): failed to open dir: No such file or directory in Command line code on line 1

Warning: scandir(): (errno 2): No such file or directory in Command line code on line 1
bool(false)

Notice that yes there’s a R: driving missing in Apache module, but since I’m accessing Z:, I assume that’s not the problem.

I don’t have access to the remote folder, and I can’t copy all files to local system. All I need is the ability to read them in PHP. What can I do?

Thanks in advance!

Edit 1:

Not sure if this matters, but I’m accessing this server via Remote Desktop (it’s geographically far from me).

And the \\192.168.211.86\voice uses username/password to map.

All the above practice is run in the same login session.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:40:01+00:00Added an answer on June 12, 2026 at 9:40 am

    Try to install Apache, PHP and MySQL manually. Once I had really headache with WAMP when I try to run a code using Curl (in PHP CLI mode) and it took days to investigate what was the problem, since that day I never install pre-bundle packages even to any testing environment.

    This link will guide you: http://docs.joomla.org/Setting_up_Apache,_PHP_and_MySQL_manually

    Check the server firewall also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Relative path not working in CSS while it's correct { width: 64px; background: url(../images/abc/xyz/bottom-navigation.jpg)
Relative import not working properly in python2.6.5 getting ValueError: Attempted relative import in non-package.
Scheme relative URLs (network-path references) are something that I've just found out about -
My problem is relative simple, but I'm not getting much luck with searches for
Relative newbie to php, running into an issue with namespaces. Inside my own class
here ,i know that relative source use as getting value with respect to the
Is this relative location html header absolutely compatible with all browsers at all platforms?
Possible Duplicate: PHP: producing relative date/time from timestamps please see the example of PHP
Whar are the relative merits between GDI+ and WPF? Also does anyone know the
Without arguing the relative merits of storing a datetime this way... If you had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.