Code Comments
Programming Forum and web based access to our favorite programming groups.-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have to write a few CGI scripts and my webhost has both PHP and perl. I'd far rather use perl, but I probably will need session tracking. The problem is that a) my host does not have anything aside from the standard modules. No mod_pe rl, no CGI:Session. b) I can't install modules locally due to not having acess to the necessary tools. no command-line perl etc. So what I'd like to know is if there's any way I could do session tracking w ith just CGI.pm or if it's not worth the bother and I should just have to grit my tee th and use PHP? I know what the answer's probably going to be :( - -- Leo Fellmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB0da+wjjtrLvNMRARAj5MAJ0YVZh0A6xv GvtnKEzoXdtoUEubggCgwIay cNL70T8oH1fyj4viDHruGzY= =9gn9 -----END PGP SIGNATURE-----
Post Follow-up to this messageLeo Fellmann wrote: > I have to write a few CGI scripts and my webhost has both PHP and perl. > I'd far rather use perl, but I probably will need session tracking. > The problem is that > a) my host does not have anything aside from the standard modules. No > mod_perl, no CGI:Session. > > b) I can't install modules locally due to not having acess to the > necessary tools. no command-line perl etc. Pure Perl modules can be 'installed' locally by simply uploading the *.pm files to appropriate directories. I believe CGI::Session is such a pure Perl module that does not need to be pre-compiled. If that's the case, you can designate a directory for Perl modules, upload the necessary files into that directory (appying the right structure), and include something like use lib '/path/to/local/Perl/library'; at the beginning of your scripts. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
Post Follow-up to this message-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gunnar Hjalmarsson wrote: | Leo Fellmann wrote: | |> I have to write a few CGI scripts and my webhost has both PHP and perl. |> I'd far rather use perl, but I probably will need session tracking. |> The problem is that |> a) my host does not have anything aside from the standard modules. No |> mod_perl, no CGI:Session. |> |> b) I can't install modules locally due to not having acess to the |> necessary tools. no command-line perl etc. | | | Pure Perl modules can be 'installed' locally by simply uploading the | *.pm files to appropriate directories. I believe CGI::Session is such a | pure Perl module that does not need to be pre-compiled. If that's the | case, you can designate a directory for Perl modules, upload the | necessary files into that directory (appying the right structure), and | include something like | | use lib '/path/to/local/Perl/library'; | | at the beginning of your scripts. Yes. I tried that, but CGI::Session unfortunately won't behave. It complains about auxiliary files not being there, that I presume should have been created dur ing installation. I can't do much about it, lacking both make and perl. I will have another go, as I've just read the makefile and can't quite see w hy it was misbehaving. If all else fails I could ask the host to install it but they are very likely not around for the near future, it being holiday season. - -- Leo Fellmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB0gGEwjjtrLvNMRARAj6kAKDBa/m2nVD3/TToQjMN3p8k5wdCdQCfR9iT p2tybutvRr5Uab8si2vZ2tY= =sJ/6 -----END PGP SIGNATURE-----
Post Follow-up to this message-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gunnar Hjalmarsson wrote: | Leo Fellmann wrote: | |> I have to write a few CGI scripts and my webhost has both PHP and perl. |> I'd far rather use perl, but I probably will need session tracking. |> The problem is that |> a) my host does not have anything aside from the standard modules. No |> mod_perl, no CGI:Session. |> |> b) I can't install modules locally due to not having acess to the |> necessary tools. no command-line perl etc. | | | Pure Perl modules can be 'installed' locally by simply uploading the | *.pm files to appropriate directories. I believe CGI::Session is such a | pure Perl module that does not need to be pre-compiled. If that's the | case, you can designate a directory for Perl modules, upload the | necessary files into that directory (appying the right structure), and | include something like | | use lib '/path/to/local/Perl/library'; | | at the beginning of your scripts. Ah, never mind. I've managed; it turned out it uses autoload and not being a ble to install it normally was making it complain because auto/* was missing. Insta lling it locally and copying over auto/CGI/* did the trick. Thanks :) - -- Leo Fellmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB0kzfwjjtrLvNMRARAiNmAJ9ltHQEvU+T 9GWqz6HBQ7H89Z+VHgCePYki 6KcWQX39gUDF13nedOyrDwE= =6koy -----END PGP SIGNATURE-----
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.