View Single Post
Old 08-06-2002, 04:52 PM  
shen_kid
Confirmed User
 
Join Date: Aug 2001
Location: Toronto, Ontario, Canada
Posts: 199
php and ssi together

how can i excute some php codes in a document with a .shtml extension?

i tried to do this in my index.shtml page,
PHP Code:
<!--#include virtual="/includes/showinc.php" --> 
and

PHP Code:
<!--#include file="includes/showinc.php" --> 
but my index.shtml just shows the source of showinc.php. it's not executed.

the strange thing is that i have this
PHP Code:
<!--#include virtual="in.php" --> 
near </head>, and it executes.

do shtml files only allow you to do
<!--#include virtual="whatever" --> only once?
shen_kid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote