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 8797311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:49:46+00:00 2026-06-13T23:49:46+00:00

I have a network drive mapped to drive letter X:\ going to an external

  • 0

I have a network drive mapped to drive letter X:\ going to an external hard drive with the path of “\\X-Drive\Public\Data”.

I am using Zend Server with Apache.

My PHP command is simple

$isFolder = is_dir("x:/");
echo($isFolder); //FALSE

Things you should know:

The code:

$isFolder = is_dir("c:/");
echo($isFolder); //TRUE

works as expected.

I am running the Zend Apache service as an administrator user. I know this is working properly because in Task Manager the httpd.exe process shows the correct user.

The drive is indeed mapped. I have tried mapping it with several users, to include the same user that Zend Apache uses to no avail.

I have read every post on this matter that I could find. Every problem I’ve come across exists either because of user permissions, or a typo. I don’t see how my problem fall into either category.

I have also tried:

system('net use X: "\\x-drive\public" password1 /user:username /persistent:no');
$isFolder(is_dir("x:/"));
echo($isFolder); //FALSE

I am running Windows Vista x64, and the production code will run in Windows 7 x64.

What other problems could I be running in to?

  • 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-13T23:49:47+00:00Added an answer on June 13, 2026 at 11:49 pm

    For network shares you should use UNC names:
    "//server/share/dir/file.ext" Source

    If you use the IP or hostname it should work fine:

    $isFolder = is_dir("\\\\NAS\\Main Disk");
    var_dump($isFolder); //TRUE
    
    $isFolder = is_dir("//NAS/Main Disk");
    var_dump($isFolder); //TRUE
    
    $isFolder = is_dir("N:/Main Disk");
    var_dump($isFolder); //FALSE
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a File Server which is mapped to a network drive letter W.
I have a network shared folder mapped to a drive letter, which is accessible
I have a SharePoint document library, mapped to a network drive, the path is
I have a mapped samba network drive in Finder (for example smb://192.168.15.119/public/ptest/test.rtf) and would
I have mapped a network drive to a computer in my home network. Now
We have a VB.NET applciation that is run from a mapped network drive. This
I have a website sitting on a mapped network drive. The <%@ Page Language=C#...
We have a problem in accessing content on a mapped network drive. We have
I have an assembly on a shared folder (UNC-path only, no mapped drive). When
I have a bat file copying files from current machine to mapped network drive

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.