Author Topic: Can you do SSI across servers?  (Read 2091 times)

0 Members and 1 Guest are viewing this topic.

Offline Bytes_U

  • album.pl Donor
  • album.pl Contributor
  • ***
  • Posts: 75
  • Karma: +0/-0
  • Oh no... not again?
Can you do SSI across servers?
« on: November 16, 2002, 22:10:32 »
Is it possible to make an ssi include request from another domain on another server?
I want to post thumbnails of "10 most recent album uploads" in my weblog's sidebar on [server 1 domain A] but the photo.pl is located on [server 2 domain B]. The include works great if it's on the same server but not from a separate one. I read that this is possibly an apache web server security feature and is not possible to do.
Thanks in advance,
Tom G.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Can you do SSI across servers?
« Reply #1 on: November 17, 2002, 05:54:40 »
I'm not an SSI guru, but I *think* you can. I know you can with PHP, doing something like this:

Quote
<?php include "http://perl.cdnarmy.ca/cgi-bin/album.pl?album=:recent;ssi=10" ?>


Not sure how to do the equivalent in SSI...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Bytes_U

  • album.pl Donor
  • album.pl Contributor
  • ***
  • Posts: 75
  • Karma: +0/-0
  • Oh no... not again?
Re: Can you do SSI across servers?
« Reply #2 on: November 17, 2002, 10:30:43 »
SSI didn't work for me across domain sites. :(
Stupid question, but can I put a php include statement inside an html template that a weblog uses. (i.e. The main index template that Movable Type uses, generates an index.shtml that contains blog text plus two other ssi's that appear in the sidebar area)
If I can use php include, how should the statement be written to pick up the 10 most recent thumbnails from album.pl that's on another site and domain.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Can you do SSI across servers?
« Reply #3 on: November 17, 2002, 11:14:38 »
My first bet would be "no" because your server has to be set to pass .php pages to the php handler. If you're using html or shtml pages, they'll never be parsed by php. (You *could* have html pages passed to php if you own the server, but may not be a good move...)

The PHP command would be just like the one above, but substitute the URL to your album.pl in there... That's exactly what I've added to http://perl.cdnarmy.ca/album to get the pic randomizer working...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Bytes_U

  • album.pl Donor
  • album.pl Contributor
  • ***
  • Posts: 75
  • Karma: +0/-0
  • Oh no... not again?
Re: Can you do SSI across servers?
« Reply #4 on: November 17, 2002, 13:43:33 »
Thanks for the info Mike. Guess I'll just have to move/mirror album.pl over to my new server if I want the ssi statement to work.
You must get tired of people asking dumb questions eh? ???
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Can you do SSI across servers?
« Reply #5 on: November 17, 2002, 13:55:47 »
Not a dumb question at all! (And hey, I don't know the answer, so if you're dumb we both are. :))

I bet Dino knows this off the top of his head... Maybe he'll drop in and save the day.  ;)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »