Results 1 to 6 of 6
July 18th, 2005, 06:58 PM #1Include page/code (SSI)
Wondering if any body has tried this....
What I would like to do is add a page into another page across a several sites so I only have to update the one page and have the update displayed at each place I put the coding.
I was thinking about this in terms of ssi.
<!--#include file="copyright.html" --> is used when the file called is in the same directory.
<!--#include virtual="/test/copyright.html" --> is used when the file call is NOT in the same directory.
Now what do I use to call the ssi from a different website?
I do not want to use iframes to do this and wonder if anybody has a solution to this problem.
I tried using abolute paths to the file I wanted to call like this:
<!--#include virtual="http://www.Mysite.com/test/copyright.html" -->
that did NOT work
<!--#include virtual="www.Mysite.com/test/copyright.html" -->
NO go there either
Edit to add: If this can be done using php or another language I am open to suggestions.
Thanks for any input you may have
July 18th, 2005, 07:18 PM #2
How about something like this:
July 18th, 2005, 07:58 PM #3
July 18th, 2005, 11:12 PM #4Anything else up your sleave
I'm also trying to get the GoldenCAN script to do what I want.
Don't tell anybody about this, ok?
You know that if we put the GoldenCAN script on a page, when people search or click on any of those links, that the page will come back with the results on the same page, right?
The problem I see with that is that whether you click on a category or do a search on the search box, the results are displayed on the same page you have the script, that might not be too bad if that page is just a page with the GoldenCAN script alone, but if you put that script on a page with some other content on it, every time that the people do a new search or click on a new category or click on a next page #, the same original content will also be displayed on that page and that looks ugly.
I use the FDSE on my site and on every page on my site a have a search box. Every time that my visitors do a search from any page, they will get the results on a page that only have the site heading and the search results.
That's what I am trying to do with the GoldenCAN script search box. I just don't want the search results to be displayed on the same page from where the search was made.
If I figured out, I will PM you.
In the meantime let's burn our brains.
July 19th, 2005, 07:35 AM #5
SSI does the job but it won't work for multiple sites, only within 1 account.
It's quite easy in PHP though, but your PHP installation must have "allow_url_fopen" set to 1 (On) - it does by default. Try using:
<?php include('http://www.domain.com/copyright.html'); ?>
everywhere you want that to be displayed.
One thing though: the page where you place this code must be named .php and not .html. It can be a simple HTML file, just rename it to "test.php" and insert the above code where you want the copyright to be displayed.[URL=http://www.hesk.com]Help desk software[/URL]
July 19th, 2005, 08:30 AM #6One thing though: the page where you place this code must be named .php and not .html. It can be a simple HTML file, just rename it to "test.php" and insert the above code where you want the copyright to be displayed.
All of my pages end with .html and I use a lot of SSI on many .html pages and it works.
Since I included this line: AddType text/x-server-parsed-html .html on my .htaccess file, I don't have to have any page ending with .php any longer.
On any .html that I want to include any SSI, all I do is this: <!--#include virtual="any-page.html" --> or <!--#include virtual="any-page.txt" --> and it always works fine.
By Adrian in forum Programming / Datafeeds / ToolsReplies: 23Last Post: February 28th, 2007, 01:03 PM
By Alannah in forum Cusimano.com ScriptsReplies: 2Last Post: April 5th, 2006, 10:26 AM
By bsnrjones in forum Cusimano.com ScriptsReplies: 1Last Post: February 5th, 2003, 08:07 AM
By icicle in forum Programming / Datafeeds / ToolsReplies: 2Last Post: September 22nd, 2002, 07:56 AM