top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

scandir doesn't find all files using PHP

0 votes
365 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 LinkedIn 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.

...