PHP glob search function work in Windows 7 env but not Ubuntu 12.10

view story

http://stackoverflow.com – Three functions found here: http://pastebin.com/h7pRT21J This script looks for video files in a "videos" directory located in the same directory as the php script. I developed it in Windows 7, and it works on the WAMP server. However, when I move it to a LAMP environment, it returns "No files found" in every instance. I thought it may be a permissions issue, but if I run the following script, it has no problems listing the video files. if ($handle = opendir('videos')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; while (false !== ($entry = readdir($handle))) { echo "$entry\n" (HowTos)