I have dozens of .shtml files on the server which include this statement to include .inc files:
<!--#include virtual="../v4/rightmenu.inc" -->
This is exactly how it shows on the source which is working just fine.
I am wondering whether I can run this on my php code without changing it since the current files has this kind of inclusion a lot and I don’t want to mess with a lot of code like this one.
I just don’t want to change it to something like <?php include "../v4/rightmenu.inc"; ?>
Use mod_rewrite to route all requests to
.shtmlfiles through a single php file. For exapmle: _includeParser.phpA very rough sketch of such a file could be:
Of course a solution like this could be optimized by some caching or other methods.