Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: J. S. on September 22, 2004, 05:08:38 AM

Title: SSI related question
Post by: J. S. on September 22, 2004, 05:08:38 AM
To use SSI.php in your page add at the very top of your page before the <html> tag on line 1:

<?php require("/home/site/public_html/SSI.php"); ?>

How can i let ppls to put SSI on other site? If i put a url in that php require the script is not working. What can i do?

If i put <?php require("http://www.mysite.com/SSI.php"); ?> the script is not working.
Title: Re: SSI related question
Post by: [Unknown] on September 22, 2004, 02:43:39 PM
You cannot use SSI across sites unless you use the shtml version... like this:

<?php require('http://www.mysite.com/SSI.php?ssi_function=boardNews'); ?>

Remember that if you access something by URL, Apache sends it through PHP.

-[Unknown]
Title: Re: SSI related question
Post by: J. S. on September 23, 2004, 08:28:15 AM
It`s not working..

<!--#include virtual="http://www.mysite.com/SSI.php?ssi_function=recentTopics" -->

Is this okay?
Title: Re: SSI related question
Post by: roboter88 on September 23, 2004, 08:30:43 AM
Are you sure you have Shtml? (secure html)

https:// ....?

Title: Re: SSI related question
Post by: J. S. on September 23, 2004, 08:32:39 AM
It`s working fine now. Thanks 4 ur help ppls.
Title: Re: SSI related question
Post by: [Unknown] on September 23, 2004, 07:55:34 PM
Quote from: roboter88 on September 23, 2004, 08:30:43 AM
Are you sure you have Shtml? (secure html)

https:// ....?

Are you smoking something :P?  It's server-side, not secure.

-[Unknown]
Title: Re: SSI related question
Post by: roboter88 on September 23, 2004, 09:12:05 PM
 8)

ow i thought "shtml" has todo with "https" -  :-)

thanks for the clearness and sry for bothering at least i learned something, yeah :-)

cheers