Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-06-2002, 04:52 PM   #1
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
Old 08-06-2002, 04:57 PM   #2
NightCaster
Registered User
 
Join Date: Aug 2002
Location: Not in real life
Posts: 90
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
NightCaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-06-2002, 05:05 PM   #3
Nbritte
Confirmed User
 
Join Date: Sep 2001
Location: Kentucky USA
Posts: 689
&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
Nbritte is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-06-2002, 05:10 PM   #4
dodo
Confirmed User
 
Join Date: Jan 2002
Posts: 162
try the using 'exec' in php

_
__________________
FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
We host the scripts for you so you trade on our bandwidth.
dodo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-06-2002, 05:14 PM   #5
shen_kid
Confirmed User
 
Join Date: Aug 2001
Location: Toronto, Ontario, Canada
Posts: 199
like how?
shen_kid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-06-2002, 05:28 PM   #6
dodo
Confirmed User
 
Join Date: Jan 2002
Posts: 162
e.g

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

_
__________________
FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
We host the scripts for you so you trade on our bandwidth.
dodo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.