[Xitami] SSI problem....

Bill Warren xitami@lists.xitami.org
Fri, 31 Dec 2004 12:05:12 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C4EF30.FB769DA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i suggest using KeyFocus for a free webserver alternative.  I like it =
better frankly.  :)
  ----- Original Message -----=20
  From: Stephen S. Disbrow=20
  To: xitami@lists.xitami.org=20
  Sent: Tuesday, December 21, 2004 11:42 PM
  Subject: [Xitami] SSI problem....


  Hello,

          I changed my default1 entry to point to index.shtml which is =
as follows;
  <html>
  <head>
  <title>OUR FAMILY</title>
  </head>

  <body Text=3D#ffffff bgcolor=3D"#000000">
  <CENTER>
  <BR><BR><BR>
  <H1>
  <MARQUEE>This page is under construction.</MARQUEE>
  </H1>
  <BR><BR><BR>
  <!--#INCLUDE VIRTUAL=3D"cgi-bin/time.pl"-->
  </CENTER>
  </body>
  </HTML>


  </html>

  I placed my perl in cgi-bin time.pl it looks as follows;
  #! /usr/bin/perl

  $ENV{"TZ"} =3D "EST5EDT";
  ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =3D =
localtime(time);
  if ($hour >  12)
  {
   $hour =3D $hour - 12;
   $ind =3D "PM";
  }
  elsif ($hour =3D=3D 12)
  {
   $ind =3D "PM";
  }
  elsif ($hour =3D=3D 0)
  {
   $hour =3D 12;
   $ind =3D "AM";
  }
  else
  {
   $ind =3D "AM";
  }
  =
$day=3D(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday)[$wday];=

  =
$month=3D(January,February,March,April,May,June,July,August,September,Oct=
ober,November,December)[$mon];
  print "Content-type: text/html\n\n";
  printf ("%s %s %02d %4d, %02d:%02d %2s", $day, $month, $mday, =
(1900+$year), $hour, $min, $ind);

  exit 0;

  The problem is when  I attempt to open the page as localhost the =
system seems to hang for a long period of time I don't know what is =
wrong if anyone could tell me what's wrong I'd really appreciate it. I =
run the same shtml doc and cgi on a apache web server and it works =
perfect. Any help would really be appreciated.
  I am running on WinXPHome  xitami-25 version as a =
service(xisrv32.exe);

  Thank You,

  Stephen S. Disbrow

  Stephen S. Disbrow

------=_NextPart_000_000B_01C4EF30.FB769DA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i suggest using KeyFocus for a free =
webserver=20
alternative.&nbsp; I like it better frankly.&nbsp; :)</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dstevedis@optonline.net =
href=3D"mailto:stevedis@optonline.net">Stephen=20
  S. Disbrow</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dxitami@lists.xitami.org=20
  href=3D"mailto:xitami@lists.xitami.org">xitami@lists.xitami.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, December 21, =
2004 11:42=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Xitami] SSI =
problem....</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
  <DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; I changed my default1 entry =
to=20
  point to index.shtml which is as follows;</DIV></DIV>
  <DIV><FONT face=3DArial =
size=3D2>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;OUR=20
  FAMILY&lt;/title&gt;<BR>&lt;/head&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;body Text=3D#ffffff=20
  =
bgcolor=3D"#000000"&gt;<BR>&lt;CENTER&gt;<BR>&lt;BR&gt;&lt;BR&gt;&lt;BR&g=
t;<BR>&lt;H1&gt;<BR>&lt;MARQUEE&gt;This=20
  page is under=20
  =
construction.&lt;/MARQUEE&gt;<BR>&lt;/H1&gt;<BR>&lt;BR&gt;&lt;BR&gt;&lt;B=
R&gt;<BR>&lt;!--#INCLUDE=20
  =
VIRTUAL=3D"cgi-bin/time.pl"--&gt;<BR>&lt;/CENTER&gt;<BR>&lt;/body&gt;<BR>=
&lt;/HTML&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =
size=3D2>
  <DIV><BR>&lt;/html&gt;</DIV>
  <DIV>&nbsp;</DIV></FONT>
  <DIV><FONT face=3DArial size=3D2>I placed my perl in cgi-bin time.pl =
it looks as=20
  follows;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>#! /usr/bin/perl</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>$ENV{"TZ"} =3D=20
  "EST5EDT";<BR>($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
=3D=20
  localtime(time);<BR>if ($hour &gt;&nbsp; 12)<BR>{<BR>&nbsp;$hour =3D =
$hour -=20
  12;<BR>&nbsp;$ind =3D "PM";<BR>}<BR>elsif ($hour =3D=3D =
12)<BR>{<BR>&nbsp;$ind =3D=20
  "PM";<BR>}<BR>elsif ($hour =3D=3D 0)<BR>{<BR>&nbsp;$hour =3D =
12;<BR>&nbsp;$ind =3D=20
  "AM";<BR>}<BR>else<BR>{<BR>&nbsp;$ind =3D=20
  =
"AM";<BR>}<BR>$day=3D(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Sat=
urday)[$wday];<BR>$month=3D(January,February,March,April,May,June,July,Au=
gust,September,October,November,December)[$mon];<BR>print=20
  "Content-type: text/html\n\n";<BR>printf ("%s %s %02d %4d, %02d:%02d =
%2s",=20
  $day, $month, $mday, (1900+$year), $hour, $min, $ind);</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>exit 0;<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>The problem is when&nbsp; I attempt =
to open the=20
  page as localhost the system seems to hang for a long period of time I =
don't=20
  know what is wrong if anyone could tell me what's wrong I'd really =
appreciate=20
  it. I run the same shtml doc and cgi on a apache web server and it =
works=20
  perfect. Any help would really be appreciated.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I am running on WinXPHome =
&nbsp;xitami-25 version=20
  as a service(xisrv32.exe);</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thank You,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Stephen S. Disbrow</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Stephen S.=20
Disbrow<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000B_01C4EF30.FB769DA0--