Possible Duplicate:
Including PHP functions from another file
I’m building code that use function calls that exist in a thirdparty php file. This 3p php file is not a function library but also contain inline code itself.
How do I call the functions without executing the inline code?
edit: duplicate of Including PHP functions from another file ?
You can’t.
You might be able to suppress the includes’ output using output buffering, but the code will still execute.
I don’t think there is a good way to do this without making copies of the respective includes, and stripping the inline code from them.