<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
H1 {
        FONT-WEIGHT: bold; FONT-SIZE: 24pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
H2 {
        FONT-WEIGHT: bold; FONT-SIZE: 18pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
ADDRESS {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle18 {
        COLOR: black; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-AU vLink=blue link=blue>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=013534322-21082008>Try changing this line:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=013534322-21082008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=013534322-21082008><FONT size=2>
<P>print CGI-&gt;headers(), "Hello";</P>
<P><SPAN class=013534322-21082008><FONT face=Arial size=2>To 
</FONT></SPAN></P><SPAN class=013534322-21082008><FONT size=2>
<P>print CGI-&gt;header(), "Hello";</P></FONT></SPAN></FONT></SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=013534322-21082008><FONT face=Arial size=2>(ie drop the 's' off 
the word 'headers').</FONT></SPAN></DIV>
<DIV><SPAN class=013534322-21082008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=013534322-21082008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT><BR>&nbsp;</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> 
melbourne-pm-bounces+lsharpe=pacificwireless.com.au@pm.org 
[mailto:melbourne-pm-bounces+lsharpe=pacificwireless.com.au@pm.org] <B>On Behalf 
Of </B>John Thornton<BR><B>Sent:</B> Thursday, 21 August 2008 7:33 
PM<BR><B>To:</B> 'Ian Macdonald'<BR><B>Cc:</B> 
melbourne-pm@pm.org<BR><B>Subject:</B> Re: [Melbourne-pm] interesting apache 
outcome<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Right, I feel that I might not be far off 
success. I used notepad++ and managed to get the file recognised as a .cgi file 
just as the files for cgi are that worked.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">I named it new433.cgi because I already 
had another hello.cgi file. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">ThenI got this which I have not seen 
before:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<H1><B><FONT face="Times New Roman" size=6><SPAN style="FONT-SIZE: 24pt">Server 
error!<o:p></o:p></SPAN></FONT></B></H1>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">The server 
encountered an internal error and was unable to complete your request. 
<o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Error 
message: <BR>couldn't create child process: 720003: new433.cgi 
<o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">If you 
think this is a server error, please contact the <A 
href="mailto:admin@localhost">webmaster</A>. <o:p></o:p></SPAN></FONT></P>
<H2><B><FONT face="Times New Roman" size=5><SPAN style="FONT-SIZE: 18pt">Error 
500<o:p></o:p></SPAN></FONT></B></H2>
<ADDRESS><I><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><A 
href="http://localhost/">localhost</A><BR>08/21/08 19:22:04<BR>Apache/2.2.9 
(Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6 
<o:p></o:p></SPAN></FONT></I></ADDRESS>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Hmm, the only child process that I have 
met is in graphics where you try to get graphics making graphics a bit like a 
math iteration. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">I really don't think that I am far off 
getting this working for appearing in the browser. I mean, a lot of things have 
gone right now. The cgi file is in the right directory and recognised as a cgi 
file. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Interestingly, when I tested new433.cgi in 
the command windows box I got a bit of a funny CGI message rather than success. 
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">But where to go from here? I dont know. 
None of this stops me from continuing with the other VTC lessons on perl; but I 
am just limited for the moment in seeing the fruit of my learning in the 
browser. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">It's interesting anyway. Thanks for help 
again and that notepad ++&nbsp;&nbsp; that is a cool editor. 
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">John<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Ian Macdonald 
[mailto:ickphum@gmail.com] <BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, 21 August 2008 6:16 
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> John 
Thornton<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> Jacinta 
Richardson; melbourne-pm@pm.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Melbourne-pm] interesting 
apache outcome</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" 
size=3><SPAN style="FONT-SIZE: 12pt">Without delving into the murky waters of 
editor preferences, an immediate win would be to use notepad++ instead, which is 
available here <A 
href="http://notepad-plus.sourceforge.net/uk/download.php">http://notepad-plus.sourceforge.net/uk/download.php</A>.<BR><BR><o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">On Thu, Aug 21, 2008 at 6:09 PM, John Thornton &lt;<A 
href="mailto:jdthornton@ozemail.com.au">jdthornton@ozemail.com.au</A>&gt; 
wrote:<o:p></o:p></SPAN></FONT></P>
<DIV vlink="blue" link="blue">
<DIV>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Yes, I was using notepad as my editor to 
make my files!</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Notepad is in general a good editor to 
use. For instance it worked in making .pl files that tested correctly for hello 
world in my command line.</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">But I will follow your tip as notepad may 
have its limitations here.</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">Hard to think of what else to use. I do 
have PSpad installed if I wanted to use something a bit fancier. 
</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">John </SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</SPAN></FONT><o:p></o:p></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P><B><FONT face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Ian Macdonald [mailto:<A 
href="mailto:ickphum@gmail.com" target=_blank>ickphum@gmail.com</A>] 
<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, 21 August 2008 
5:54 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> John 
Thornton<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> Jacinta 
Richardson; <A href="mailto:melbourne-pm@pm.org" 
target=_blank>melbourne-pm@pm.org</A><o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Melbourne-pm] interesting 
apache outcome<o:p></o:p></SPAN></FONT></P></DIV></DIV>
<P><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">On Thu, Aug 
21, 2008 at 5:49 PM, John Thornton &lt;<A 
href="mailto:jdthornton@ozemail.com.au" 
target=_blank>jdthornton@ozemail.com.au</A>&gt; 
wrote:<o:p></o:p></SPAN></FONT></P>
<DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Hmm..<BR><BR>&nbsp; &nbsp;I did as you suggested and 
got:<BR><BR>&nbsp; &nbsp; Object not found!<BR><BR>The requested URL was not 
found on this server. If you entered the URL<BR>manually please check your 
spelling and try again.<BR><BR>If you think this is a server error, please 
contact the webmaster.<BR>Error 404<BR>localhost<BR>08/21/08 
17:44:37<BR>Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h 
mod_autoindex_color<BR>PHP/5.2.6<BR><BR>***************<BR>So I don't know. It 
seems to me that there is one difference between the<BR>files that have 
succeeded as CGI browser formats in the explore CGI box:<BR><BR>the successful 
ones are listed as CGI files whereas the ones I tried such as<BR>hello.cgi are 
still listed as text documents.<BR><BR>Thanks anyway<BR>Any more suggestions and 
I will try them out.<BR><FONT color=#888888><SPAN 
style="COLOR: #888888"><BR>John</SPAN></FONT><o:p></o:p></SPAN></FONT></P></DIV></DIV></DIV>
<DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR>That 
sounds interesting; what editor are you using to create the files? It sounds 
like it might be Notepad or something else that likes to silently add .txt to 
all file names.<BR><BR>In the explorer window, go to the Tools menu and choose 
Folder Options. Now select the View tab and find "Hide extensions for known file 
types" and make sure this is not ticked. Click Apply, Ok, refresh the window and 
see if some of the files now display as name.cgi.txt. If so, remove the ".txt" 
part and try again.<BR><BR><BR clear=all><BR>-- <BR>Ian 
Macdonald<o:p></o:p></SPAN></FONT></P></DIV></DIV></DIV></DIV></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><BR><BR clear=all><BR>-- <BR>Ian 
Macdonald<o:p></o:p></SPAN></FONT></P></DIV></DIV></BODY></HTML>