Ok, I'm allowing the uploading of files which can have multiple functions in them. I need to be able to somehow error trap the include_once
so that if the function_exists
already and that function is being called within the file that is uploaded, than it, either 1 sends an error message, or 2 doesn't include the file at all.
Any Ideas?
I've done this:
@include_once($filename);
but than I get a blank page instead of an error message.
Or is there a better way to do this with the filename and filepath?