GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php and ssi together (https://gfy.com/showthread.php?t=71028)

shen_kid 08-06-2002 04:52 PM

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?

NightCaster 08-06-2002 04:57 PM

Quote:

do shtml files only allow you to do
As far as I know, you can only use SSI commands on .SHTML files.

I am no pro programmer so don't blame me if I'm wrong :Graucho

Nbritte 08-06-2002 05:05 PM

&lt!--#include virtual="/includes/showinc.php" -->

should work
or try
&lt!--#include file="/includes/showinc.php" -->
you can also make the server parse html and htm documents
by adding this to an htaccess file
AddHandler server-parsed .html
AddHandler server-parsed .htm

dodo 08-06-2002 05:10 PM

try the using 'exec' in php

_

shen_kid 08-06-2002 05:14 PM

like how?

dodo 08-06-2002 05:28 PM

e.g

exec("someperlscript.pl parameters >/dev/null &");

_


All times are GMT -7. The time now is 11:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123