Solved

OpenDir: Invalid argument

Posted on 2004-08-09
1
591 Views
Last Modified: 2013-12-13
I'm trying to get working following code:

$path = "C:\\@\\";
$dp = opendir($path);

and get following error:

OpenDir: Invalid argument (errno 22)

Any chance to make it working with '@' character in path?

TIA,
dumb
0
Comment
Question by:iam_dumb
1 Comment
 
LVL 3

Accepted Solution

by:
thecode101 earned 200 total points
ID: 11763184
Try this:
$dp = opendir('c:/@');

I tested it using the following script and it worked correctly:
<?php
if ($handle = opendir('c:/@'))
{
      while (false !== ($file = readdir($handle)))
         {
              if ($file != "." && $file != "..")
                  {
                        echo $file;
              }
       }
}
else
      echo "Unable to Open Folder";
?>
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question