how to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC contains:

Re: how to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
Dermot Paikkos wrote: If you are using mod_perl then you can use the PerlSwitches directive for -I/path/to/common.pl. Alteratively you use `use lib` in your ticket-list.pl Alternatively, I can do chmod g+r,o+r common.pl :-) STF

user sessions

2009-03-04 Thread Stanisław T. Findeisen
Hello, how to make user sessions? Something like: * log in using password * maintain session state across several executions of several scripts forming the application * log out Do I have to do it manually or is there something ready that you can recommend? Thank you. STF

Re: how to require() a file?

2009-03-04 Thread Stanisław T. Findeisen
Gunnar Hjalmarsson wrote: Stanisław T. Findeisen wrote: I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC