<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Perl question"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Perl question"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Perl question</title>
				<description><![CDATA[ I'm NOT a perl programmer, but I have to edit a perl file. I know HTML in an out, but not Perl in the least!  I updated all the files I saw for a course registration page: <a class="snap_shots" href="http://www.hcrhs.k12.nj.us/cgi-bin/ettc/courses.pl" target="_blank" rel="nofollow">http://www.hcrhs.k12.nj.us/cgi-bin/ettc/courses.pl</a> but after you click register and fill in the info (bogus info) it gives this message:<br /> <br /> [b]Unable to OPen file at /var/scohttp/cgi-bin/academy_regis.pl line 127. [/b]<br /> <br /> Here is that file (is there something wrong???):<br /> #!/usr/local/bin/perl <br /> # academy_regis.pl<br /> # edited 1-20-01 to setup for Groupwise auto respond.<br /> # edited 2-12-01 to change file format (for future class lists)<br /> require "cgi-lib.pl";<br /> MAIN:<br /> {<br /> print &amp;PrintHeader;<br /> print "&lt;body background=/gif/barodabg2.gif&gt;";<br /> print "&lt;center&gt;&lt;h1&gt;Academy Course Registration Form&lt;/h1&gt;";<br /> print "&lt;h4&gt;&lt;strong&gt;HCRHS  - -  84 Route 31 - - Flemington, NJ - - 08822";<br /> print "&lt;hr&gt;&lt;/center&gt;";<br /> print "The following information has been sent to The Academy at Hunterdon Central.  Please forward your check/purchase order (if required) to Dr. Judy Gray at the adress listed above";<br /> print "&lt;/strong&gt;&lt;/h4&gt;";<br /> <br /> read (STDIN,$buf,$ENV{'CONTENT_LENGTH'});<br />   @kvpairs = split(/&amp;/,$buf);<br /> #  $newinfo = join (/:/,@kvpairs);<br />   foreach $kv (@kvpairs) {<br />      ($key,$val) = split(/=/,$kv);<br />      $val =~ tr/+/ /;<br />      $val =~ s/%([a-fA-F0-9]{2})/pack("C",hex($1))/eg;<br />      $formdata{$key}= $val;<br />   }<br /> <br /> print "&lt;table border=4 cellpadding=3 cellspacing=5&gt;";<br /> <br /> print "&lt;tr&gt;&lt;td&gt;";<br /> <br /> print "&lt;strong&gt;Course&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Starting Date&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Time&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;";<br /> print "&lt;tr&gt;&lt;td&gt;";<br /> print "$formdata{course1}&lt;/td&gt;&lt;td&gt;$formdata{date1}&lt;/td&gt;&lt;td&gt;$formdata{time1}&lt;/td&gt;&lt;/tr&gt;";<br /> print "&lt;tr&gt;&lt;td&gt;";<br /> print "$formdata{course2}&lt;/td&gt;&lt;td&gt;$formdata{date2}&lt;/td&gt;&lt;td&gt;$formdata{time2}&lt;/td&gt;&lt;/tr&gt;";<br /> print "&lt;tr&gt;&lt;td&gt;";<br /> print "$formdata{course3}&lt;/td&gt;&lt;td&gt;$formdata{date3}&lt;/td&gt;&lt;td&gt;$formdata{time3}&lt;/td&gt;&lt;/tr&gt;";<br /> <br /> print "&lt;/table&gt;";<br /> print "&lt;br&gt;&lt;strong&gt;&lt;pre&gt;";<br /> print "Name              - ",$formdata{realname};<br /> print "&lt;br&gt;";<br /> print "Address           - ",$formdata{Address};<br /> print "&lt;br&gt;";<br /> print "City              - ",$formdata{City};<br /> print "&lt;br&gt;";<br /> print "State             - ",$formdata{State};<br /> print "&lt;br&gt;";<br /> print "Zip               - ",$formdata{Zip};<br /> print "&lt;br&gt;";<br /> print "School            - ",$formdata{School};<br /> print "&lt;br&gt;";<br /> print "School Address    - ",$formdata{School_Address};<br /> print "&lt;br&gt;";<br /> print "Home Phone        - ",$formdata{Home_phone};<br /> print "&lt;br&gt;";<br /> print "Work Phone        - ",$formdata{Work_phone};<br /> print "&lt;br&gt;";<br /> print "E-mail            - ",$formdata{email};<br /> print "&lt;br&gt;";<br /> <br /> print "&lt;/pre&gt;";<br /> print "&lt;/strong&gt;&lt;/center&gt;";<br /> print &amp;HtmlBot;<br /> <br /> }<br /> <br /> <br /> # the mail routine <br /> $mailprog="/usr/lib/sendmail";<br /> $recipient='sschaffe@hcrhs.k12.nj.us';<br />  open (MAIL,"|\/usr\/lib\/sendmail -t");<br />  print MAIL "To: $recipient  \n";<br />  print MAIL "From: $formdata{email}\n";<br /> $subj="CS:".$formdata{course1};<br />  print MAIL "Subject: $subj \n\n";<br /> print MAIL $formdata{realname}," has recently registered via our web site.\n";<br /> print MAIL "\n Here is the data he/she supplied:\n\n";<br /> print MAIL "course #1  - ",$formdata{course1};<br /> print MAIL "\n";<br /> print MAIL "start date - ",$formdata{date1};<br /> print MAIL "\n";<br /> print MAIL "time       - ",$formdata{time1};<br /> print MAIL "\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "course #2  - ",$formdata{course2};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{date2};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{time2};<br /> print MAIL "\n\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "course #3  - ",$formdata{course3};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{date3};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{time3};<br /> print MAIL "\n\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "Name           - ",$formdata{realname},"\n";<br /> print MAIL "Address        - ",$formdata{Address},"\n";<br /> print MAIL "City           - ",$formdata{City},"\n";<br /> print MAIL "State          - ",$formdata{State},"\n";<br /> print MAIL "Zip            - ",$formdata{Zip},"\n";<br /> print MAIL "School         - ",$formdata{School},"\n";<br /> print MAIL "School Address - ",$formdata{School_Address},"\n";<br /> print MAIL "Home Phone     - ",$formdata{Home_phone},"\n";<br /> print MAIL "Work Phone     - ",$formdata{Work_phone},"\n";<br /> print MAIL "E-mail         - ",$formdata{email},"\n";<br /> print MAIL "Remote Host IP - ",$ENV{REMOTE_ADDR},"\n";<br /> <br /> close (MAIL);<br /> <br /> $recipient='sschaffe@hcrhs.k12.nj.us';<br />  open (MAIL,"|\/usr\/lib\/sendmail -t");<br />  print MAIL "To: $recipient  \n";<br />  print MAIL "From: $formdata{email}\n";<br /> $subj="CS:".$formdata{course1};<br />  print MAIL "Subject: $subj \n\n";<br /> print MAIL $formdata{realname}," has recently registered via our web site.\n";<br /> print MAIL "\n Here is the data he/she supplied:\n\n";<br /> print MAIL "course #1  - ",$formdata{course1};<br /> print MAIL "\n";<br /> print MAIL "start date - ",$formdata{date1};<br /> print MAIL "\n";<br /> print MAIL "time       - ",$formdata{time1};<br /> print MAIL "\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "course #2  - ",$formdata{course2};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{date2};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{time2};<br /> print MAIL "\n\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "course #3  - ",$formdata{course3};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{date3};<br /> print MAIL "\n";<br /> print MAIL "   ",$formdata{time3};<br /> print MAIL "\n\n---------------------";<br /> print MAIL "\n\n";<br /> print MAIL "Name           - ",$formdata{realname},"\n";<br /> print MAIL "Address        - ",$formdata{Address},"\n";<br /> print MAIL "City           - ",$formdata{City},"\n";<br /> print MAIL "State          - ",$formdata{State},"\n";<br /> print MAIL "Zip            - ",$formdata{Zip},"\n";<br /> print MAIL "School         - ",$formdata{School},"\n";<br /> print MAIL "School Address - ",$formdata{School_Address},"\n";<br /> print MAIL "Home Phone     - ",$formdata{Home_phone},"\n";<br /> print MAIL "Work Phone     - ",$formdata{Work_phone},"\n";<br /> print MAIL "E-mail         - ",$formdata{email},"\n";<br /> print MAIL "Remote Host IP - ",$ENV{REMOTE_ADDR},"\n";<br /> <br /> close (MAIL);<br /> <br /> # open file to keep data<br /> open(FOO,"&gt;&gt;/u/httpdocs/academy/regis.dat") || die("Unable to OPen  file ");<br /> print FOO $buf,"\n";<br /> <br /> close(FOO);]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2619/6918.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2619/6918.php</link>
				<pubDate><![CDATA[Sun, 4 Jan 2004 22:38:15]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ u/httpdocs/academy/regis.dat is a totally different path than what your error path message is. I would change that path to reflect the true location of regis.dat<br /> <br /> probably should be /var/scohttp/cgi-bin/regis.dat]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2619/6920.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2619/6920.php</link>
				<pubDate><![CDATA[Mon, 5 Jan 2004 09:11:41]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Anonymous"]u/httpdocs/academy/regis.dat is a totally different path than what your error path message is. I would change that path to reflect the true location of regis.dat<br /> <br /> probably should be /var/scohttp/cgi-bin/regis.dat[/quote]<br /> <br /> should be /var/scohttp/academy/regis.dat]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2619/6926.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2619/6926.php</link>
				<pubDate><![CDATA[Mon, 5 Jan 2004 22:44:03]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
	</channel>
</rss>