Sessions with only standard modules

L

Leo Fellmann

-----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+wjjtrLvNMRARAj5MAJ0YVZh0A6xvGvtnKEzoXdtoUEubggCgwIay
cNL70T8oH1fyj4viDHruGzY=
=9gn9
-----END PGP SIGNATURE-----
 
G

Gunnar Hjalmarsson

Leo said:
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.
 
L

Leo Fellmann

-----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-----
 
L

Leo Fellmann

-----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+T9GWqz6HBQ7H89Z+VHgCePYki
6KcWQX39gUDF13nedOyrDwE=
=6koy
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top