We help IT Professionals succeed at work.

Adding PHP code to a .shtml page

cobra502
cobra502 asked
on
319 Views
Last Modified: 2013-12-13
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.
Comment
Watch Question

Top Expert 2007

Commented:
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
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.