Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

OpenDir: Invalid argument

Posted on 2004-08-09
1
Medium Priority
?
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
thecode101 earned 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

618 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