top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

scandir doesn't find all files using PHP

0 votes
59 views

I have some files in a directory - some are uploaded via ftp and some other are created by a php script.

Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting.

I can't find anything about this behaviour in the documentation.

posted Jun 22, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
Please show code and output.

1 Answer

0 votes

Did you try the glob function? http://php.net/glob

answer Jun 22, 2013 by anonymous
Similar Questions
0 votes

I always ran my php files as /localhost/myfile.php. Now the system cannot find the files. It says "waiting for local host" and stays in an infinite loop. All the files are in /var/www.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...