Click to See Complete Forum and Search --> : server side includes in .shtml file


goodforum
06-22-2007, 08:26 AM
I have included a php file in .shtml file but it is not working. Somebody can help me solve this problem.

<? include("header.php")?>

The header file is not viewing when i open the .shtml file in browser

aj_nsc
06-22-2007, 12:11 PM
This is not a server side include. This is php code which describes the inclusion of a file. So you cannot include a file this way into a .shtml file, you need to rename it to a .php file so the php parser can read the code between the <? ?>