error with opendir


Posted on 16th Feb 2014 07:03 pm by admin

when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$files[$mone]=$file;
$mone++;
}
}
closedir($handle);
}


i got

pendir() [function.opendir]: Unable to access

[function.opendir]: failed to open dir: Permission denied in

why? i have chmod of 777 of all the files and folder in this folder
help please
thank

No comments posted yet

Your Answer:

Login to answer
310 Like 6 Dislike
Previous forums Next forums
Other forums

losing session vars when arriving from an email link
Hi,

I've got a confirmation script made that sends an email with a link for a user to confirm

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

Having problemswith multithreading and prime numbers
I have an assignment when I'm suppose to do the following:

Write a multithreaded Java, Pt

PHP and XML image gallery variable issue
I'm trying to display the large image on the same page as the thumbnails, to do that I'm passing a v

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

PHP form authentication
Hi guys,

what am trying to achieve is this: Whenever a user tries to login to my website, an

Format timestamp from mysql
When I tried this:
Code: date("m/d/Y H:i A", $row['timestamp'])
I got 12/31/1969 18:

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash