Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi calendar proglem on hosted web site

Status
Not open for further replies.

tsimsnh

Programmer
Mar 15, 2006
6
US
I have a web site with and "Events" button that, when clicked opens a page called events.php. The events.php calls the calendar.pl file using this script:
<?php
header("Location: ?>

In IE, the script fails when the event.php page is opened. In firefox the path is called but the calendar.pl file will not run. Below is the calendar.pl file as I believe that is where the problem may lie, however it displays fine when I preview it locally. I'm using Front Page to move the updated files to the web site. The web site is hosted by a local ISP who is not much help. Please help. The problem started when I removed the contact email links and the "last Modidified" from the end of the calendar.pl file. Thanks!

Calendar.pl
<HTML><HEAD>
<TITLE>Crown Point Country Club Calendar as of 3/28/08 8:48 PM</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
window.name = "Main_Window";
function popit(url) {
window.open(url, "_popups", "toolbar=no,resizable=yes,status=no,location=no,menubar=no,scrollbars=yes,height=410,width=320")
}
</SCRIPT>
</HEAD><BODY bgcolor="#FBFCEA">
<FORM METHOD = post ACTION = "/cgi-bin/calendar/calendar.pl">
<INPUT TYPE = hidden NAME = session_file VALUE = >
<INPUT TYPE = hidden NAME = calendar VALUE = >
<CENTER>
<H1><img src=../../images/cpcc_title_short.gif> <BR><img src="../../images/divider.gif"><BR> March 2008<br>
<font size="4"><A HREF="../../">Back to CPCC Main Page</A></font></h1>
</CENTER><CENTER><TABLE WIDTH=100% BORDER=0 CELLSPACING=2 CELLPADDING=0>
<TR><TD ALIGN=LEFT>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=2&category=All&session_file=&calendar=&view_day=on">
<IMG SRC="/calendarimages/prev_month.gif" BORDER=0 ALT="Previous Month"></A></TD><TD ALIGN=CENTER>
<FONT SIZE=2 FACE="Verdana,Helvetica,Arial"><B>Categories:</B></FONT><FONT SIZE=2 WEIGHT=100 FACE="Verdana,Helvetica,Arial" COLOR=#660000>
Open to the Public</FONT> |<FONT SIZE=2 WEIGHT=100 FACE="Verdana,Helvetica,Arial" COLOR=#006600>
Open to all Members</FONT> |<FONT SIZE=2 WEIGHT=100 FACE="Verdana,Helvetica,Arial" COLOR=#000066>
Private Functions</FONT> |<FONT SIZE=2 WEIGHT=100 FACE="Verdana,Helvetica,Arial" COLOR=#666666>
Other</FONT></TD>
<TD ALIGN=RIGHT>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=4&category=All&session_file=&calendar=&view_day=on">
<IMG SRC="/calendarimages/next_month.gif" BORDER=0 ALT="Next Month"></A></TD>
</TR></TABLE></CENTER><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=100%>
<TD BGCOLOR=#cccccc>
<TABLE BORDER=1 CELLPADDING = 1 CELLSPACING = 1 WIDTH=100%>
<TR><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Sun</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Mon</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Tue</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Wed</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Thu</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Fri</B>
</FONT>
</TH><TH BGCOLOR = #666666 WIDTH=14.286%>
<FONT COLOR=WHITE>
<B>Sat</B>
</FONT>
</TH></TR><TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=1&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">1</A><BR>
<TABLE></TABLE></TD>
</TR>
<TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=2&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">2</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=3&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">3</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=4&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">4</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=5&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">5</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=6&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">6</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=7&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">7</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=8&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">8</A><BR>
<TABLE></TABLE></TD>
</TR>
<TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=9&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">9</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=10&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">10</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=11&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">11</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=12&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">12</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=13&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">13</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=14&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">14</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=15&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">15</A><BR>
<TABLE></TABLE></TD>
</TR>
<TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=16&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">16</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=17&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">17</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=18&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">18</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=19&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">19</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=20&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">20</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=21&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">21</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=22&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">22</A><BR>
<TABLE></TABLE></TD>
</TR>
<TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=23&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">23</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=24&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">24</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=25&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">25</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=26&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">26</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=27&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">27</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ccffcc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=28&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"><B>28</B></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=29&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">29</A><BR>
<TABLE></TABLE></TD>
</TR>
<TR>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=30&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">30</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#ffffee>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=31&year=2008&month=3&category=All&session_file=&calendar=&view_day=on">31</A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
<TD VALIGN=TOP HEIGHT=75 BGCOLOR=#cccccc>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=3&category=All&session_file=&calendar=&view_day=on"></A><BR>
<TABLE></TABLE></TD>
</TR>
</TABLE></CENTER></TD></TABLE>
<CENTER><TABLE WIDTH=100% BORDER=0 CELLSPACING=2 CELLPADDING=0>
<TR><TD VALIGN=TOP ALIGN=LEFT>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=2&category=All&session_file=&calendar=&view_day=on">
<IMG SRC="/calendarimages/prev_month.gif" BORDER=0 ALT="Previous Month"></A></TD><TD>
<CENTER><TABLE BORDER=0><TR><TD>
<INPUT TYPE=hidden Name=category Value=All>
<INPUT TYPE=submit Name=change_month_year Value=Jump>
to<SELECT NAME="month">
<OPTION VALUE = "1">January
<OPTION VALUE = "2">February
<OPTION SELECTED VALUE = "3">March
<OPTION VALUE = "4">April
<OPTION VALUE = "5">May
<OPTION VALUE = "6">June
<OPTION VALUE = "7">July
<OPTION VALUE = "8">August
<OPTION VALUE = "9">September
<OPTION VALUE = "10">October
<OPTION VALUE = "11">November
<OPTION VALUE = "12">December
</SELECT>
<SELECT NAME = "year">
<OPTION VALUE = "2007">2007
<OPTION SELECTED VALUE = "2008">2008
<OPTION VALUE = "2009">2009
<OPTION VALUE = "2010">2010
</SELECT>
</TD></TR></TABLE>
</CENTER>
</TD><TD VALIGN=TOP ALIGN=RIGHT>
<A HREF = "/cgi-bin/calendar/calendar.pl?day=&year=2008&month=4&category=All&session_file=&calendar=&view_day=on">
<IMG SRC="/calendarimages/next_month.gif" BORDER=0 ALT="Next Month"></A></TD></TR>
<TR VALIGN=TOP ALIGN=CENTER><TD></TD><TD ALIGN=CENTER><INPUT TYPE=submit Name=calendar_help Value="Calendar Viewing Tips">
</TD><TD></TD></TR></TABLE></CENTER></FORM>
<center><img src="../../images/divider.gif"></center></A>
</BODY></HTML>
 
How does the script fail in IE do you get an error? If so post it here.
Second the end of your file seems to be missing something.
Code:
</TD><TD></TD></TR></TABLE></CENTER></FORM>
           <center><img src="../../images/divider.gif"></center></A> [red]Where does this closing </a> come from there should be an opening <a> somewhere [/red]

What exactly did you remove from the file?

Also since this is, I'm assuming, a Perl Script maybe you should ask this in the Perl forum: forum219




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
vacunita,

Thank you for your quick reply. I'm just getting an HTTP 500 internal server error in IE. I'm thinking the end of the file is missing something also. I removed 3 lines that were just email links, each with a </BR> at the end of them. Also, there was a script that showed the last time the calendar was updated. Unfortunately, no file backup available... F+ on that one, I know...

Thanks also for your suggestion to post to Perl forum. Wasn't sure if everything was caused by the php file.
 

I'm assuming its a something in your Perl file since if I copy and paste the link in your redirect code above the file does nothing its just blank in FF. And I get the same error you do in IE6.

That takes PHP out of the equation. So I'm pretty sure its in Your Perl file. I think you removed something you weren't supposed to by mistake.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top