Anonymous Anonymous - 2 years ago 322
PHP Question

Scan current folder using PHP

I have a folder structure like this:


If I'm writing my code in second.php, how can I scan the current folder(articles)?


Answer Source
$files = glob(dirname(__FILE__) . "/*.php");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download