Cancel execution of php code in included file
I noticed that when you include a file with include 'file.anyextension';
and inside that file you have <?php ?> tags, that php code will be
executed. My question is:
How can I properly cancel execution of php code in file.anyextension?
My solution by now will be $file = str_replace('', '<?'), $file);
I'm on a local server now,Windows 8 64, uniServer Zero.
Edit:
I will let user to upload a file and include it in another php file.
That's my aplication. But I only wnat to allow them to execute html. I
noticed that if in a html file there are php tags that php code will be
executed. So I want to cancel execution of php code.
No comments:
Post a Comment