[Melbourne-pm] interesting apache outcome
Jacinta Richardson
jarich at perltraining.com.au
Wed Aug 20 23:28:49 PDT 2008
John Thornton wrote:
> Though what is interesting is that if I go to the xammp explore and
> get into the cgi box there are two files: pearltest.cgi and cgi.cgi.
>
> If I put into the browser: http://localhost/cgi-bin/perltest.cgi
>
> then I get:
>
> GCI with MiniPerl
> CGI with MiniPerl is ready ...
>
> and if I put the cgi.cgi in instead of pearltest.cgi and the rest the
> same I get:
>
> OK
>
> So I don't know. I have sort of got what I wanted in terms of getting the
> browser to use a cgi file to get a desired [I assume] outcome. It's just
> that when I make my own .pl files and put all the shebang stuff etc in the
> VTC tute, and then change it to a .cgi title and move into this same cgi
> file as used above, that I still a 404 error.
Create the following file and call it hello.cgi
-----------------
#!/usr/bin/perl -w
use CGI;
print CGI->headers(), "Hello";
------------------
put it in the same directory as perltest.cgi and cgi.cgi, so that if you "go to
xammp explore and get into the cgi box" there are now three files: perltest.cgi,
cgi.cgi and hello.cgi.
Then go to: http://localhost/cgi-bin/hello.cgi
What happens?
Jacinta
--
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |
More information about the Melbourne-pm
mailing list