Hi weaver, something isn't "wrong", unless PHP has somehow drastically changed. i'm afraid to say, as much as i like to vent my frustration on code, this is not one of the cases. Check the link, the code still works there :)
Can you confirm that you have changed the directory you are searching through?