Author Topic: Using Server Side Includes (SSI)  (Read 18474 times)

0 Members and 1 Guest are viewing this topic.

Offline Message Deejay

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +2/-0
  • Album.pl addicted
    • Personal Website
Re:Using Server Side Includes (SSI)
« Reply #30 on: December 07, 2003, 15:51:01 »
well then it is time to work on a addon for me..

i will soon post it here for ya!

take care mike!

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Using Server Side Includes (SSI)
« Reply #31 on: December 08, 2003, 09:40:16 »
LOL, you da man... :)

Offline prosez

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • Designer
    • LC7 - Design, Development and Technology Solutions
Re:Using Server Side Includes (SSI)
« Reply #32 on: February 16, 2004, 13:23:43 »
Remove Image Link Border from random thumbnail images:

img {border:none}

Add that to your css.  

Also, is there an easy way to set the random thumbnail ssi call to randomize in intervals, such as daily, weekly, etc.?  
-------------------------------------------
Private Jet Charter - Ventura Air Services, Inc. (VAS) is a New York (NY) based full service aircraft management company operating jet aircraft and helicopters.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Using Server Side Includes (SSI)
« Reply #33 on: February 17, 2004, 11:43:59 »
You can use the "wget" option discussed herer:

http://perl.bobbitt.ca/yabbse/index.php?board=7;action=display;threadid=757

Just set the cron job to run at whatever interval you want. I use this and it works great...

Offline prosez

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • Designer
    • LC7 - Design, Development and Technology Solutions
Re:Using Server Side Includes (SSI)
« Reply #34 on: February 20, 2004, 08:06:11 »
I got ya, tried that at first but didnt work.  Finally had my host help me out, and boom, now it works.  great way to implement the randomizer method.
Thanks
Lou
-------------------------------------------
Private Jet Charter - Ventura Air Services, Inc. (VAS) is a New York (NY) based full service aircraft management company operating jet aircraft and helicopters.

Offline prosez

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • Designer
    • LC7 - Design, Development and Technology Solutions
Re: Using Server Side Includes (SSI)
« Reply #35 on: April 23, 2004, 11:56:18 »
A minor problem with the server side include on win 2003 server.  I am using the code <!--#include virtual="/cgi-bin/album.pl?random=1;ssi=1"--> in the file www.lc7.com/index2.shtml and you can see the errors.  I've also tried include file, but that is not allowed on the server.  If you run http://www.lc7.com/cgi-bin/album.pl?random=1;ssi=1 you have no errors. 
Any suggestions welcome.
Thanks
Lou
-------------------------------------------
Private Jet Charter - Ventura Air Services, Inc. (VAS) is a New York (NY) based full service aircraft management company operating jet aircraft and helicopters.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Using Server Side Includes (SSI)
« Reply #36 on: April 23, 2004, 12:23:52 »
If you check the source, it's actually including the entire contents of album.pl in there... Looks like the SSI include directive is literally including! Is there an exec directive you can use instead?

Offline prosez

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • Designer
    • LC7 - Design, Development and Technology Solutions
Re: Using Server Side Includes (SSI)
« Reply #37 on: April 23, 2004, 13:00:42 »
Unfortunately they don’t allow that, for security reasons.  I am going to try and make a script to do what was suggested in another post, for a random image, once a day.  If it works out ill post it here.
Thanks
Lou
-------------------------------------------
Private Jet Charter - Ventura Air Services, Inc. (VAS) is a New York (NY) based full service aircraft management company operating jet aircraft and helicopters.

Offline prosez

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • Designer
    • LC7 - Design, Development and Technology Solutions
Re: Using Server Side Includes (SSI)
« Reply #38 on: May 04, 2004, 21:39:37 »
Well i got the ssi working, however i am getting this line of code with the image:
"HTTP/1.1 200 OK Date: Wed, 05 May 2004 02:32:36 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html "
After contacting my host, they said it was "this can be caused by the CGI script generating the wrong HTTP header"  Any thoughts?
-------------------------------------------
Private Jet Charter - Ventura Air Services, Inc. (VAS) is a New York (NY) based full service aircraft management company operating jet aircraft and helicopters.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Using Server Side Includes (SSI)
« Reply #39 on: May 06, 2004, 10:34:26 »
Well, it could be the script, but that seems unlikely since the line in question definitely comes from the server ("Server: Microsoft-IIS/6.0"). Check the HTML for that call and see if it has a proper Content-Type header in it... Maybe that's the cause...?

Offline Crolguvar

  • album.pl User
  • *
  • Posts: 1
  • Karma: +0/-0
  • I changed the default text.
Re: Using Server Side Includes (SSI)
« Reply #40 on: July 05, 2004, 13:13:04 »
Well i got the ssi working, however i am getting this line of code with the image:
"HTTP/1.1 200 OK Date: Wed, 05 May 2004 02:32:36 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html "
After contacting my host, they said it was "this can be caused by the CGI script generating the wrong HTTP header"  Any thoughts?

Does this mean you got the "include virtual" to display the result of the script (not just the source)? How did you get that to work?
I'm still at the point where including a perl script in a Virtual include simply shows the source code. And if I try to include a perl script with parameters, IIS simply says it cannot find the file. This is much easier to do with Apache but I need to use IIS for this particular site.

For your extra header info, that is usually caused by the fact that perl is mapped to "perlis.dll". Mapping to "perl.exe %s %s" will not display the header info (but there can be other issues involved with doing that...).