Hi,
How do you check if an include / require_once exists before you call it, I tried putting it in an error block, but PHP didn't like that.
I think file_exists()
would work with some effort, however that would require the whole file path, and a relative include could not be passed into it easily.
Are there any other ways?