Apache::DBI and pnotes

2006-10-02 Thread Vladimir S. Tikhonjuk
::errstr; As I understand, I may write a handler, which would have such code, and then use pnotes to export $database_connect variable to other handlers. Could anyone give me any example of such tasks ? Best regards, Vladimir S. Tikhonjuk

Unescape URI

2006-09-11 Thread Vladimir S. Tikhonjuk
it ? Best regards, Vladimir S. Tikhonjuk

Project config options

2006-08-20 Thread Vladimir S. Tikhonjuk
options. Best regards, Vladimir S. Tikhonjuk

mod_perl comforts

2006-08-17 Thread Vladimir S. Tikhonjuk
Hi all! I need some advice on how to make some comfort into mod_perl Response Handler. I used cookies and sessions to authenticate and authorizate user into my app ( Apache2::AuthCookie ). So, every handler ( or most of them ) have to get cookie, take a session id from it, makes

Apache2::AuthCookie

2006-08-06 Thread Vladimir S. Tikhonjuk
Hi all I get the next error, when I'm trying to use AuthCookie: failed to resolve handler Promtelecom::Authentication I put Promtelecom/Authentication.pm into /usr/local/lib/site_perl, which is in my @INC path list. Here is my httpd.conf: PerlModule Promtelecom::Authentication

Database Authentication

2006-08-03 Thread Vladimir S. Tikhonjuk
HI all ! I want to make a Database Authentication for my site. I have a PostgreSQL Database. I made a connect_on_init by user 'web_user' to the database. The question is: where better to make site users ? Create them as database users and put into system pg_shadow and pg_group tables or

Authentication

2006-08-03 Thread Vladimir S. Tikhonjuk
Hi all! I'm thinking about 2 methods of authentication users for my site. May be you'll help me to choose one of them, or advice me something else. The first method: using PerlAuthenHandler on '/' Location. The second method: simple handler, for example http://localhost/login, which

Re: Apache::DBI-connect_on_init

2006-08-02 Thread Vladimir S. Tikhonjuk
Well, I installed last versions of Apache ( 2.0.58 ), DBI ( 1.50 ), Apache-DBI ( 1.01 ) and mod_perl ( 2.0.2 ). Here is my stutup file: # Start of apache-dbi-startup.pl use Apache::DBI; use DBI; $Apache::DBI::DEBUG = 1; Apache::DBI-connect_on_init( dbi:Pg:dbname=database;host=localhost,

Re: PerlSetVar

2006-08-02 Thread Vladimir S. Tikhonjuk
Philip M. Gollucci пишет: Vladimir S. Tikhonjuk wrote: Philip M. Gollucci пишет: Vladimir S. Tikhonjuk wrote: I set in httpd.conf variable like: PerlSetVar var test; How can I get it in the startup.pl script ? http://perl.apache.org/docs/2.0/user/config

Re: handlers

2006-08-01 Thread Vladimir S. Tikhonjuk
Scott Penrose пишет: On 01/08/2006, at 15:50, Vladimir S. Tikhonjuk wrote: So, as I understant, If I want authenticate user before seeing every page, I have to put Location / PerlAuthenHandler Promtelecom::Authentication AuthType Basic AuthName Promtelecom Network Require valid-user

Re: handlers

2006-08-01 Thread Vladimir S. Tikhonjuk
John ORourke пишет: Vladimir S. Tikhonjuk wrote: O.K. Thanks for answer :) I want to write rather big project. How I have to construct it: I mean, should I make a lot of handlers, like, /debitor, /debitor/documents, /debitor/documents/contracts Or, create *.pl scripts. Or may

Apache::DBI-connect_on_init

2006-08-01 Thread Vladimir S. Tikhonjuk
I will get 5 database connections. Best regards, Vladimir S. Tikhonjuk

handlers

2006-07-31 Thread Vladimir S. Tikhonjuk
Hi everyone! I have Authentication handler, which I set like: Location / PerlAuthenHandler Promtelecom::Authentication AuthType Basic AuthName Promtelecom Network Require valid-user /Location Alseo I have 2 simple PerlHandler's: Debitor and DebitorDocuments, which

Re: Some standart and simple tasts with MP2 HOWTO

2006-07-30 Thread Vladimir S. Tikhonjuk
Hi all! Our company has a backoffice project written on C++ ( Qt ) for Linux by my department. But nessesity appear's to make WEB interface, with all functions which our C++ program does. Now I have to choose among a lot of languages and technologies of WEB development. I have a lot of

Some standart and simple tasts with MP2 HOWTO

2006-07-29 Thread Vladimir S. Tikhonjuk
new string in err_log here: 11838 Apache::DBI new connect to 'dbname=database;host=databaseuserpasswordAutoCommit=0PrintError=1Username=user' Where is a mistake ? Best regards, Vladimir S. Tikhonjuk