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 problem

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>
 
That doesn't look like a perl file, rather just a html file

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
He has probably brought the .pl file up in IE and then did a view source and thought that was the script. If you want help your going to need to ftp/copy down the actual script.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Yep, that's what looks like happened. Somebody replaced the calendar.pl file with a copy of the HTML source from the page. Of course, that wiped out the path to the perl executable. Got it going now. Was able to telnet into the host site to find the path and rebuild the calendar.setup and calendar.pl files. Thanks for the clues PaulTEG and travs69. (Also implemented a solid backup plan for the site since the previous guy didn't have anything).
 
good stuff, glad you got it sorted

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top