Hi experts i got an php script that when i run i get this error:
could an expert tell me how i can fix it. I am running php 4.2.0.
Code:
Fatal error: Call to undefined function: glob() in c:\inetpub\[URL unfurl="true"]wwwroot\test\avatars.php[/URL] on line 27
Code:
$aFiles = glob("$sDir/$sPattern", $nFlags);
foreach (glob("$sDir/*", GLOB_ONLYDIR) as $sSubDir)
{
$aSubFiles = rglob($sSubDir, $sPattern, $nFlags);
$aFiles = array_merge($aFiles, $aSubFiles);
}
// The array we return contains the files we found, and the
// files all of our children found.
return $aFiles;
}
/* Get Listing of avatars */
$files = rglob (AVATARS_DIR.AVATARS_DIR_STOCK, '*');
sort ($files, SORT_STRING);
could an expert tell me how i can fix it. I am running php 4.2.0.