Link to home
Start Free TrialLog in
Avatar of cobra502
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/NavigateG2.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/NavigateG2.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.
Avatar of hernst42
hernst42
Flag of Germany image

See http://forums.hostrocket.com/archive/index.php/t-2234.html

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
ASKER CERTIFIED SOLUTION
Avatar of cobra502
cobra502

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial