Gossamer Forum
Home : Products : Others : Fileman :

CGI.pm problems

Quote Reply
CGI.pm problems
two questions:
-how to find out if my ISP has installed CGI.pm
-if not installed, what are the possibilities I have for the script to run nevertheless
Quote Reply
Re: CGI.pm problems In reply to
Hi Thilo,

Sorry for the late reply. If you have telnet access, try:

perl
use CGI;

if you don't get an error right away, then you should be ok.

The script won't run without CGI.pm, any half decent ISP that offers Perl should offer access to CGI.pm.

Cheers,

Alex
Quote Reply
Re: CGI.pm problems In reply to
Hello Alex

Thanks for your tip but unfortunately I have only very restricted telnet access - only to change my password - so it would be nice if your could give me an other solution Smile - perhaps where normaly the CGI.pm is located would be of some help, as I can browse the entire directory of my ISP.

Bye - Thilo



Quote Reply
Re: CGI.pm problems In reply to
Well you could try the following script:

#!/usr/local/bin/perl

print "Content-type: text/plain\n\n";
eval {
require CGI;
};
$@ ? print "Not found: $@" : print "Found!";
# ---------------------------------------

which should let you know if it's installed. Otherwise, look in /usr/lib/perl5/site_perl is where it normally resides.

Best bet is to just ask your ISP.

Cheers,

Alex
Quote Reply
Re: CGI.pm problems In reply to
OK that worked fine - and CGI.pm is NOT installed. So my question: What exactally do I have to told my ISP to do - where could he find the CGI.pm or more simply can I installed it in my directory and tell the script to look for it there ???

Greetings from Luxembourg

Thilo
Quote Reply
Re: CGI.pm problems In reply to
Thilo,

Talk to your ISP and see if he will install it for you. It's available at www.cpan.org/modules as well as many other sites.



------------------
Patrick
Quote Reply
Re: CGI.pm problems In reply to
I tried both methods suggested to find CGI.pm. I telnetted in and at the prompt
typed:

perl
use CGI;

and got an error

I made a short script doing the same this alex outlined above and it also errored out.

Now here is the part, I'd like comments on.

When I did the same things I tried above, and changed the line
use CGI;
to
use CGI.pm;

I got no errors.

Does this mean that I need to edit the fileman script somewhere so it can get CGI.pm?

------------------
Kelly
"When I'm not programming web sites it must be raining, because I am the Kayak Maniac"