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 07-14-2005, 08:57 PM   #1
beemk
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
beemk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 08:58 PM   #2
teksonline
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
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 08:59 PM   #3
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
in .htaccess
AddType application/x-httpd-php .php .shtml

should work
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 08:59 PM   #4
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
maybe not.. i dont know .. lol
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 09:06 PM   #5
beemk
CLICK HERE
 
Industry Role:
Join Date: Jan 2002
Posts: 20,829
Quote:
Originally Posted by teksonline
impossible, call your SSI from php system execs and then print out the content
can you explain that in lamens terms?
__________________
I host with Vacares
beemk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 09:25 PM   #6
Meorazhar
Confirmed User
 
Meorazhar's Avatar
 
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.
Meorazhar is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 09:43 PM   #7
4Pics
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%
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 09:51 PM   #8
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Quote:
Originally Posted by Meorazhar
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.
Me, too. But, I use .php instead of .phtml. Same thing.
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2005, 09:52 PM   #9
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by beemk
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.
This works for me. Add this to your .htaccess:

Code:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
If you're using .shtml then you'll probably want to add that extention.

Call your script like this:

Code:
<?php virtual ("/cgi-bin/script.cgi"); ?>
Another benefit is that you can run php files from html pages.
garce 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.