Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Sessions with only standard modules
-----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-----

Report this thread to moderator Post Follow-up to this message
Old Post
Leo Fellmann
12-26-04 08:55 PM


Re: Sessions with only standard modules
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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
12-26-04 08:55 PM


Re: Sessions with only standard modules
-----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-----

Report this thread to moderator Post Follow-up to this message
Old Post
Leo Fellmann
12-26-04 08:55 PM


Re: Sessions with only standard modules
-----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-----

Report this thread to moderator Post Follow-up to this message
Old Post
Leo Fellmann
12-27-04 02:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:24 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.