Some standart and simple tasts with MP2 HOWTO

2006-07-29 Thread Vladimir S. Tikhonjuk
romtelecom::Debitor 7. Here I think that Apache::DBI will see that Promtelecom::Authentication already established database connection with same parameters and returns me this connection, but I see 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

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 h

handlers

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

Re: handlers

2006-07-31 Thread Vladimir S. Tikhonjuk
Scott Penrose пишет: > > On 01/08/2006, at 15:30, Vladimir S. Tikhonjuk wrote: > >> Hi everyone! >> >> I have Authentication handler, which I set like: >> >> >> PerlAuthenHandler Promtelecom::Authentication >> AuthType Basic >> AuthName &q

Re: handlers

2006-07-31 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 >> >> >> PerlAuthenHandler Promtelecom::Authentication >> AuthType

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/contra

Apache::DBI->connect_on_init

2006-08-01 Thread Vladimir S. Tikhonjuk
ons to the Database. I think, that If I use connect_on_init and have for example 5 apache processes, after starting of apache I will get 5 database connections. Best regards, Vladimir S. Tikhonjuk

Re: Apache::DBI->connect_on_init

2006-08-01 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",

PerlSetVar

2006-08-02 Thread Vladimir S. Tikhonjuk
Hi all! I set in httpd.conf variable like: PerlSetVar var test; How can I get it in the startup.pl script ? Vladimir.

Re: PerlSetVar

2006-08-02 Thread Vladimir S. Tikhonjuk
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/config.html#C_PerlSetVar_

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

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 c

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

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 PerlSetV

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 sess

Project config options

2006-08-20 Thread Vladimir S. Tikhonjuk
pd.conf == So, when I have to get database connection into some handle, I use %Promtelecom::Config::DBIConnectionOption hash for connection options. Best regards, Vladimir S. Tikhonjuk

Unescape URI

2006-09-11 Thread Vladimir S. Tikhonjuk
:OK; } As I understand, I have to unescape URI here to get right value of $req->param('key'). How to do it ? Best regards, Vladimir S. Tikhonjuk

Apache::DBI and pnotes

2006-10-02 Thread Vladimir S. Tikhonjuk
onnect to database: ".$DBI::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