Msg#: 4373256 posted 2:57 pm on Oct 11, 2011 (gmt 0)
Facing a strange problem, not sure if anybody faced similar issue. Earlier I had a static content website which comprised of html files. In some of the pages I was using embedded PHP codes, which was running fine. Now I have changed the architecture from static to dynamic as below.
http://example.com/category/subcategory.html is internally redirecting to http://example.com/cgi-bin/display.pl?category=subcategory thanks to .htaccess
Problem is now my embedded PHP codes are not getting executed, and writing the PHP content in PERL is not a valid option here.
How can I execute my old PHP code snippets from within the PERL scripts over apache ?
Msg#: 4373256 posted 3:13 pm on Oct 11, 2011 (gmt 0)
If you're using Apache2 and you can modify the server configuration, you might be able to change php's mode of operation to a filter instead of a content module, that way, cgi-scripts could output php-code and it would be parsed and run by php.