Jump to content

[SOLVED] about the glob() (*Just Server problem)


ted_chou12

Recommended Posts

I cannot get the glob() function to work, i think that is because i dont understand it fully enough, can anyone tell me what does the star in the glob function means?
below is the example:
[code]
<?php
foreach (glob("*.txt") as $filename) {
  echo "$filename size " . filesize($filename) . "\n";
}
?>
[/code]
Thanks,Ted
If your servers version of PHP is below 4.3.0 then it doesn't support the glob() function. If your version of PHP does support it, you're not using the function correctly. [url=http://www.php.net/glob]Check the manual[/url] for more examples.

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.