Hi,
I am using the opendir() function in order to open the folder and view its contents, but the folder/path it checks (i.e. the value I pass to the function) might not always exist so how would I get my code to simply say 'if the folder does not exist, then dont carry on etc..'?
I read you can add the @ operator to the start as such @opendir($folder); but this still seems to throw out errors.
Any suggestions?