Home > Archive > PERL Miscellaneous > December 2004 > Sessions with only standard modules
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sessions with only standard modules
|
|
| Leo Fellmann 2004-12-26, 3:55 pm |
| -----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_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.
So what I'd like to know is if there's any way I could do session tracking with just
CGI.pm or if it's not worth the bother and I should just have to grit my teeth 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-----
| |
| Gunnar Hjalmarsson 2004-12-26, 3:55 pm |
| 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.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Leo Fellmann 2004-12-26, 3:55 pm |
| -----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 during
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 why 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-----
| |
| Leo Fellmann 2004-12-26, 9:01 pm |
| -----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 able to
install it normally was making it complain because auto/* was missing. Installing 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-----
|
|
|
|
|