Im trying to set a array containing all the image files in a directory, ive got my index.php set up in the same directory as the images. The code im using is
$images = glob("*.jpg, *jpeg, *.png, *.gif");
var_dump($images);
which returns - array(0) { } in the browser.. any idea what im doing wrong ?
sorry if this is such an obvious question im still very green to php
glob()manual page again. Just throwing in commas is not a valid syntax for specifying alternative file extensions.