PHP versione 5.2.*
my function not working :/
images in server, in folder: /public_html/gallery/images

<?php
foreach(glob('gallery/images/*', GLOB_NOSORT) as $image)
{
echo "Filename: " . $image . "<br />";
}
?>
any help? what im doing wrong?
error i get is : Warning: Invalid argument supplied for foreach() in /home/a9773555/public_html/gallery/index.php on line 2
var_dump(getcwd());show? - DaveRandomglob('gallyer/images/*', GLOB_NOSORT)is not returning an array. Probably encountered an error and returns afalse, which is an invalid argument for foreach. - Patrick Manser