Jump to content

Can I direct glob() to a specific directory?


ballhogjoni

Recommended Posts

This is some code I have

 

foreach (glob("*.php") as $filename) {
				if (in_array($filename,$noshow)) {
					continue;
				}

 

and I am wondering if I could tell the foreach array to look at a specific directory.

 

Ex:

 

foreach (glob("http://xxx/*.php") as $filename) {
				if (in_array($filename,$noshow)) {
					continue;
				}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.