cobra502
asked on
Adding PHP code to a .shtml page
I have written several web pages with the file extension .shtml containing <!--#include virtual="Include/NavigateG 2.inc" --> in them and everything works okay. I have added some PHP to these web pages and I now have problems.
When I continue to use file extension .shtml the php code does not get parsed. When I use the file extension .php my <!--#include virtual="Include/NavigateG 2.inc" --> data is missing from the screen. I assume it is not getting parsed because the file extension is not .shtml.
My question. What file extension should I be using and what should the code look like to get these two functions to co-habitat in the same page?
Thanks for your time and help.
When I continue to use file extension .shtml the php code does not get parsed. When I use the file extension .php my <!--#include virtual="Include/NavigateG
My question. What file extension should I be using and what should the code look like to get these two functions to co-habitat in the same page?
Thanks for your time and help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://rssfeedreader.com/php.html#SHTML
Guess you need to name NavigateG2.inc to NavigateG2.php or you need to add the extension .inc to be pared as a php-file