|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
CLICK HERE
Industry Role:
Join Date: Jan 2002
Posts: 20,829
|
Best way to use SSI and PHP at the same time
i have a network of 31 sites. all of them use SSI on each page. I just got a script done to update the text easily but its a php script. what is my best solution? for ssi they have to be .shtml pages.
__________________
I host with Vacares |
|
|
|
|
|
#2 |
|
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
impossible, call your SSI from php system execs and then print out the content
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
in .htaccess
AddType application/x-httpd-php .php .shtml should work |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
maybe not.. i dont know .. lol
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
Why? It's absolutely possible. For me, the following SSI directive works perfectly:
<!--#include virtual="_header.phtml" --> where _header.phtml is a php3 script. I do it all the time. |
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Dec 2001
Posts: 7,952
|
Php scripts do
<? virtual("/cgi-bin/script.cgi"); ?> I prefer to run more php and do it that way when I need to run a cgi on the same page, but not all scripts work 100% |
|
|
|
|
|
#8 | |
|
Viva la vulva!
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
|
Quote:
Code:
RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Call your script like this: Code:
<?php virtual ("/cgi-bin/script.cgi"); ?>
|
|
|
|
|