php output buffering - prevent part of code from being parsed? -
i generating static html pages using output buffering using include.
is there way prevent parts of php code being parsed? rather having output, php still intact?
according php documentation:
when file included, code contains inherits variable scope of line on include occurs. variables available @ line in calling file available within called file, point forward. however, functions , classes defined in included file have global scope.
with said, don't think can use include here. if don't want php code parsed php interpreter, use file_get_contents() or similar. allow fetch file without of php code being parsed.
Comments
Post a Comment