Using DBI

2004-12-28 Thread Octavian Rasnita
Hi all, I am a new member on this list and after reading the posts from this list in the last few days, I don't even know if this is the apropriate place for asking questions about using mod_perl. If it is not, please tell me if there is another list which could be more useful for a mod_perl begin

Re: Using DBI

2004-12-28 Thread Octavian Rasnita
From: "Malcolm J Harwood" <[EMAIL PROTECTED]> > [Tue Dec 28 21:07:34 2004] [error] DBD::mysql::db prepare failed: handle 2 > is owned by thread 265c564 not current thread 14ce78c (handles can't be > shared between threads and your driver may need a CLONE method added) at > f:/web/presa/modules/Get

Re: Using DBI

2004-12-28 Thread Octavian Rasnita
I have tried to install Apache-DBI from TheoryX but ppm gave an error: Error: no suitable installation target found for package Apache-DBI. How can I apply that patch manually? Do I need to edit the module Apache::DBI by hand? (Under Windows) Thanks. Teddy From: "Randy Kobes" <[EMAIL PROTECTED

Re: apache:session and mod perl

2004-12-29 Thread Octavian Rasnita
If this happens only in pages with frames, try creating a page without frames. Teddy - Original Message - From: "Chris Ochs" <[EMAIL PROTECTED]> To: Sent: Thursday, December 30, 2004 9:42 AM Subject: apache:session and mod perl This question could go to one of several different lists,

recommendations

2004-12-30 Thread Octavian Rasnita
Hi, I want to configure a production server that uses mod_perl and I don't know what version to choose because I see that mod_perl 2 is not stable yet. What do you recommend, to install Apache 1.3 and mod_perl 1 and use it until mod_perl 2 will be stable enough, or do you think that mod_perl 2 can

CGI::Session or CGI::Application

2005-01-14 Thread Octavian Rasnita
Hi, If I want to use CGI::Session or CGI::Application, can I do it if I use mod_perl or there are better modules for using with MP? Thanks. Teddy

Re: CGI::Session or CGI::Application

2005-01-17 Thread Octavian Rasnita
And I have seen that CGI::Session is not very fast, even when there are only a few sessions in a MySQL table, but... are there any other libraries that can do it better? I have seen that CGI::session is made in such a way that anyone can write a driver for another databases or ways of storing data

recompiling the modules

2005-01-25 Thread Octavian Rasnita
Hi, Is it possible to let modperl recompile the modules if they are modified? I've seen that if I modify a perl module, Apache doesn't check to cee if the module has been modified, so it keeps running the old code from memory. Thank you. Teddy

Re: AuthCookie on Win32

2005-01-29 Thread Octavian Rasnita
I'm not a big specialist, but try setting Apache to KeepAlive Off. It might wait until a certain request is finished before allowing a new request. Teddy - Original Message - From: "Gary M. Spieler" <[EMAIL PROTECTED]> To: Sent: vineri, 28 ianuarie 2005 23:46 PM Subject: AuthCookie on

setting environment variables

2005-01-30 Thread Octavian Rasnita
Hi, I have tried to put the following lines in httpd.conf: SetEnv user "gigel" SetEnv pass "parola" Well, if I print the environment variables using a cgi script, they are printed fine, but if I use MP, their values are not printed, and I can see just a: user= pass= Please tell me how can I do

Re: securing web form interaction

2005-02-15 Thread Octavian Rasnita
Don't forget to create a sound file also that will contain the pass phrase, because otherwise the blind visitors won't be able to use your site.

Re: securing web form interaction

2005-02-15 Thread Octavian Rasnita
Hi, I usually use placeholders in DBI. Is this enough for avoiding SQL injections? I have made a simple test and I have seen that it seems to be enough, but... I am not sure. Thanks. Teddy - Original Message - From: "Ian Joyce" <[EMAIL PROTECTED]> To: "Adam Prime x443" <[EMAIL PROTECTE

Re: securing web form interaction

2005-02-16 Thread Octavian Rasnita
> > On Feb 15, 2005, at 1:20 PM, Octavian Rasnita wrote: > > > Don't forget to create a sound file also that will contain the pass > > phrase, > > because otherwise the blind visitors won't be able to use your site. > > Wow -- this is a great idea -- d

types of Apache

2005-02-16 Thread Octavian Rasnita
Hi all, I am just a Linux user, and not an expert and I want to learn using ModPerl and Apache under Linux better. I use SuSe and I have seen the following directories in /usr/lib: apache apache2-prefork apache2-worker and in some of them I found more Apache modules. Can you tell me which is

the memory used increases

2005-02-20 Thread Octavian Rasnita
Hi, I am using mod_perl and I try to initialize every variable before using it with "" or undef, but even so, I can see that the memory used by Apache increases more and more after using the site. Are there any tips and hints about what should we do to avoid this memory increase somewhere on the

Re: A Problem With Diplaying A Perl Generated Romanian Page In IE...

2005-02-24 Thread Octavian Rasnita
Hi, The romanian character set (ISO-8859-16) is very seldom used, because it was not implemented on very many applications, but ISO-8859-2 is much often used even some characters are not showing exactly as they should look in romanian. The problem is that the browsers see the HTTP header, and use

segmentation fault

2005-03-04 Thread Octavian Rasnita
Hi, I am using a very simple program which gets some data from a MySQL table, prints a form and that data. The server is: Apache/2.0.52 (Unix) PHP/5.0.2 mod_perl/1.99_19 Perl/v5.8.4 Server at 10.50.28.50 Port 80 Sometimes the program works fine, but very often it gives a 404 Not Found error. I

Verify mod_perl installation

2005-03-04 Thread Octavian Rasnita
Hi, Is there a way to test if mod_perl 2.0 was installed correctly? I have some problems with a program and I think mod_perl installation might be the source. Thank you. Teddy

meta.iml

2005-03-07 Thread Octavian Rasnita
Hi, I am trying to re-install mod_perl using cpan module, and it gives me a warning which tells that meta.iml or something like that is missing. Is this file very important? If yes, where can I get it from, and where do I need to put it? Thank you. Teddy

errors

2005-03-07 Thread Octavian Rasnita
Hi, After installing mod_perl, I saw the following errors in t/logs/error_log: Please tell me if these are fatal errors and if they won't let mod_perl run correctly. Thank you END in modperl_extra.pl, pid=13062 [Mon Mar 07 11:52:23 2005] [notice] Apache/2.0.52 (Unix) world domination series/2.0

Re: errors

2005-03-07 Thread Octavian Rasnita
No, not all the tests passed. Two tests were not passed, and I thought the error log I've sent tells more. Thanks. Teddy - Original Message - From: "Geoffrey Young" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: Sent: luni

HTTP headers

2005-03-19 Thread Octavian Rasnita
Hi, I have tried the following script under Windows 2000, mod_perl 2, Perl 5.8.4: use strict; use CGI; my $q = new CGI; print "Content-type: text/html\n\nTestare\n"; $q->redirect("http://localhost/";); This should print the Content-type: text/html header, then the word "testare" in the body, t

Error when installing mod_perl

2005-03-23 Thread Octavian Rasnita
Hi, Do you have any idea why I get 2 errors each time I want to install mod_perl 2 under Fedora Core 2, Apache 2.05, perl 5.8.6? I get the same errors when I try to install mod_perl on more computers, doesn't matter if I download and compile the tar.gz file manually or I try to install it using c

upgrading mod_perl

2005-03-27 Thread Octavian Rasnita
Hi, Is it possible to upgrade mod_perl from 1.9.9.03 (if I remember well the number) to the latest version? Or do I need to remove the old version and install the newest one? I have a problem with a program (presa.industrialit.ro) because sometimes it works, I can view a page, click a link view

OOP or functional?

2005-04-02 Thread Octavian Rasnita
Hi, As a general idea, what way do you suggest to create the modules that will be used with mod_perl? Using the functional style (with the Exporter module), or using the object oriented style? I am asking this because I want to maximize the speed of the execution, and I know that the OOP way migh

Installing mod_perl for 2 servers on the same computer

2005-04-06 Thread Octavian Rasnita
Hi all, Is it possible to install mod_perl for 2 Apache servers running on the same computer using CPAN? Or it is necessary to get the tar ball, and compile it manually? If I try to do: # cpan # cpan> install mod_perl It tells me that mod_perl is up to date. Thanks. Teddy

Problem installing mod_perl (because of CGI?)

2005-04-06 Thread Octavian Rasnita
Hi, Here is the error I get after "make test" phase of mod_perl installation: [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/local/bin/perl /home/teddy/mod_perl/mod_perl-2.0.0-RC4 APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE /usr/local/b

Re: Problem installing mod_perl (because of CGI?)

2005-04-06 Thread Octavian Rasnita
From: "Geoffrey Young" <[EMAIL PROTECTED]> > /usr/local/site/bin/httpd -d /home/teddy/mod_perl/mod_perl-2.0.0-RC4/t -f > /home > onf -D APACHE2 -D PERL_USEITHREADS > using Apache/2.0.53 (prefork MPM) > waiting 120 seconds for server to start: .Syntax error on line 861 of > /home/tedd > Invalid com

Re: Problem installing mod_perl (because of CGI?)

2005-04-06 Thread Octavian Rasnita
Yes I am using Perl 5.8.6. Thanks. Teddy - Original Message - From: "Philip M. Gollucci" <[EMAIL PROTECTED]> To: Cc: "Octavian Rasnita" <[EMAIL PROTECTED]> Sent: miercuri, 06 aprilie 2005 20:56 PM Subject: Re: Problem installing mod_perl (because of CGI

Re: Problem installing mod_perl (because of CGI?)

2005-04-06 Thread Octavian Rasnita
Well, this is my problem. I was not the person that has installed that server. I just want to add mod_perl to it. But checking with httpd -l I have seen that mod_env and mod_setenv are compiled in modules... Thanks. T Teddy - Original Message - From: "Philip M. Gollucci" <[EMAIL PROTE

mod_perl-2.0.0-RC5 under Windows?

2005-04-11 Thread Octavian Rasnita
Hi, Is it possible to install mod_perl-2.0.0-RC5 under Windows? I have tried but it tells me that it cannot find apxs nor ap_release.h. Then I've tried using perl Makefile.pl --prefix=/apache2 But it told that it can't find any libs ("Note: (probably harmless)"). But after finishing perl Make

APR::Const

2005-04-12 Thread Octavian Rasnita
Hi, Does anyone know where I can download the module APR::Const (for Windows)... meaning the ppd file? I have seen that the site jenda.krynicky.cz cannot be found. Can that module be found somewhere else? I cannot make mod_perl work without it. Thank you. Teddy

Re: APR::Const

2005-04-12 Thread Octavian Rasnita
So, what can I do to install it? I have tried to install it with cpan but it asked me for apxs, because cpan also tries to install mod_perl. Teddy - Original Message - From: "Brent Clark" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]>

Apache-DBI

2005-04-17 Thread Octavian Rasnita
Hi, Please tell me how to use the Apache::DBI module if I use mod_perl 1.999.22 RC5. Should I use the following? use Apache2::DBI (); Where can I get Apache2::DBI in this case? (I am using Active Perl under Windows). I have tried to search for Apache2-DBI with ppm, but with no results. Or sh

recommendation

2005-04-17 Thread Octavian Rasnita
Hi, What do you think it is the best way of installing Apache 2.054 and mod_perl? Install Apache using the prefork MPM and Perl threaded, or not threaded...? Thank you for opinions. Teddy

Re: Apache-DBI

2005-04-17 Thread Octavian Rasnita
ot; <[EMAIL PROTECTED]> Cc: "Octavian Rasnita" <[EMAIL PROTECTED]>; Sent: Monday, April 18, 2005 5:18 AM Subject: Re: Apache-DBI > > before or after the renaming that went on - if you search > > the mailing list archives, there's some patches avail

Re: recommendation

2005-04-18 Thread Octavian Rasnita
piling the programs I told you above, configuring the web server (but not very advanced). Thank you very much. Teddy - Original Message - From: "Philip M. Golllucci" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: Sent: Monday, April 18,

Re: Apache-DBI

2005-04-18 Thread Octavian Rasnita
> What stopping you from applying them ? > > If the eol(end of line ^M) is wrong I can regenerate in on a > windows computer for you. > > > I hope mod_perl 1.999.22 rc5 will also work with the old Apache::DBI. > Nope not going to happen. I am not compiling Apache, perl and mod_perl under Windows

Re: recommendation

2005-04-18 Thread Octavian Rasnita
Yes I would also prefer installing them from rpms, but unfortunately I usually cannot find the latest versions as .rpm. Thank you. - Original Message - From: "Chris Croome" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: "P

CGI::Cookie

2005-04-18 Thread Octavian Rasnita
Hi, I have seen an error in the log file of Apache telling that Apache/RequestUtil.pm was not found. I have seen that this module was called from CGI::Cookie and CGI::Cookie contains the following line (at line 32): require Apache::RequestUtil; Should I change this with: require Ap

mod_perl

2005-04-18 Thread Octavian Rasnita
Hi, I have read the following in mod_perl rc5 announce: move all Apache:: constants to Apache2::Const and all APR:: constants to APR::Const. for example, Apache:OK is now Apache2::Const::OK and APR::SUCCESS is now APR::Const::SUCCESS. [Geoffrey Young] Then, after installing mod_perl rc5 under

Re: mod_perl

2005-04-18 Thread Octavian Rasnita
From: "Geoffrey Young" <[EMAIL PROTECTED]> > > E:\usr\site\lib\ModPerl\RegistryCooker.pm > > > > at line 161, appears: > > > > return $rc unless $rc == Apache2::OK; > > > > > > Shouldn't this line be: > > > > return $rc unless $rc == Apache2::Const::OK; > > yes, and it is in RC5 - that version of R

Re: Apache-DBI

2005-04-18 Thread Octavian Rasnita
From: "Randy Kobes" <[EMAIL PROTECTED]> > That's potentially true in general, but Apache-DBI is a pure > Perl module, so it doesn't need a C compiler to build. > If you want to play around with it, we have a ppm package > of Apache-DBI at http://theoryx5.uwinnipeg.ca/ppms/ - you > can install it, a

Re: mod_perl

2005-04-18 Thread Octavian Rasnita
> > That's strange ... Did you get mod_perl from >http://theoryx5.uwinnipeg.ca/ppms/ > and does it have "RC5" in the version (of the ppd file)? > I just checked the associated .tar.gz containing the > files to be installed, and ModPerl::Registry* uses > Apache2::Const::OK. > Hi, I am not ver

do is not working?

2005-04-26 Thread Octavian Rasnita
Hi, I have tried the following test script under mod_perl using ModPerl::Registry handler: use strict; use warnings; my $m = do "/usr/local/intranet/site/modules/markets.ini"; use Data::Dumper; print Dumper $m; The program prints "$VAR1 = undef;" if I run the program running mod_perl. It print

Can't find module

2005-04-26 Thread Octavian Rasnita
Hi, I have seen the following error in the error log: [Tue Apr 26 14:44:53 2005] [error] Can't locate BMFMS.pm in @INC (@INC contains: /usr/local/intranet/site/modules /usr/local/lib/per l5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/i686-linux /usr/local/lib/

Apache2::DBI?

2005-04-27 Thread Octavian Rasnita
Hi, Is there a module Apache2::DBI on CPAN? I have searched on search.cpan.org but I couldn't find it. I just found Apache::DBI but I guess this module will not work with mod_perl rc5. I thought this module is not available for Windows only, but it seems that this module is not available for anyo

Apache2::Status bug?

2005-04-29 Thread Octavian Rasnita
Hello, I have finished (I hope) installing mod_perl rc5 under Windows 2000, and I have tried the server using http://localhost/perl-status. I was able to use it very well, until I have tried to see the following links in order: Loaded Modules - Apache::Const - Apache::Const::OK - Syntax Tree Dump

an unknown filter was not added: apreq2

2005-05-02 Thread Octavian Rasnita
Hi, I have installed libapreq2 under Windows 2000 using ppm because I want to use Apache2::Request. I have tried a simple module: package Test::Module; use strict; use Apache2::RequestRec (); use Apache2::RequestIO (); use Apache2::Const -compile => ':common'; use Apache2::Request (); sub hand

Re: [ANNOUNCE] mod_perl 2.0.0-RC6

2005-05-04 Thread Octavian Rasnita
Hi, I have tried to install it, using: # perl Makefile.pl # make After this step, it gave the following error: modperl_filter.c: In function `modperl_brigade_dump': modperl_filter.c:1253: internal error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriat

mod_perl 2.0 under Windows 2000

2005-05-15 Thread Octavian Rasnita
Hi, I have tried to compile mod_perl 2.0.0-DEV under Windows 2000, using Visual Studio 6. I have done: > perl Makefile.pl > nmake > nmake test The result was: Failed Test Stat Wstat Total Fail Failed List of Failed -

Error: handles can't be shared between threads

2005-05-19 Thread Octavian Rasnita
Hi, I am using mod_perl 2.0.0 under Windows 2000, with perl 5.8.6, Apache 2.0.54, and Apache::DBI version 0.96. I want to create a module that uses DBI.pm for connecting to the MySQL database, then using that module in all other modules that might need a connection. Here is the module I have tr

Re: Error: handles can't be shared between threads

2005-05-19 Thread Octavian Rasnita
From: "Perrin Harkins" <[EMAIL PROTECTED]> > On Thursday 19 May 2005 1:47 pm, Octavian Rasnita wrote: > > [Thu May 19 20:36:01 2005] [error] DBD::mysql::db prepare failed: handle 2 > > is owned by thread 225321c not current thread 17cde94 (handles can't be

Re: Error: handles can't be shared between threads

2005-05-20 Thread Octavian Rasnita
Hi, From: "Perrin Harkins" <[EMAIL PROTECTED]> > > I have put the following lines in a startup.pl file which is included for > > all virtualhosts (but I have a single virtual host): > > > > use Apache::DBI (); > > Apache::DBI->connect_on_init('DBI:mysql:database=test', 'root', undef, > > {PrintErr

Re: Apache::DBI and mod_perl

2005-06-24 Thread Octavian Rasnita
From: "Jan Eden" <[EMAIL PROTECTED]> After going through all this, I did an ApacheBench with/without Apache::DBI being used (1000 requests, 10 concurrent), and it turned out that Apache::DBI is actually slowing down delivery from 13 requests/second to 7.78 (on my local test machine). Oh my. --

Re: Apache::DBI and mod_perl

2005-06-24 Thread Octavian Rasnita
>So the recommendation is to not use Apache::DBI? > That sounds reasonable at this point. I was just wondering why Apache::DBI is effectively slowing down delivery in this setup where a lot of DB requests are involved. Is it because my scripts still contain a $dbh->disconnect() and overriding thi

speed

2005-08-20 Thread Octavian Rasnita
Hi, I have made a site using mod_perl with ModPerl::Registry. It works much faster than using a simple cgi script, but it still works slow sometimes and I would like to change some things. There are 3 situations: 1. The page is displayed pretty fast (less than a second) 2. The same kind of pag

Re: mod_perl and php

2005-08-20 Thread Octavian Rasnita
I have tried to install that PHP interpreter under Windows, but it gave some bad errors. Isn't it working under Windows? Teddy - Original Message - From: "Nikolay Ananiev" <[EMAIL PROTECTED]> To: Sent: Saturday, August 20, 2005 23:16 PM Subject: Re: mod_perl and php > As I read again

Re: speed

2005-08-22 Thread Octavian Rasnita
From: "Randy Kobes" <[EMAIL PROTECTED]> Subject: Re: speed > > I assume, for the delay problem, you've ruled out > correlations with a (momentary) high server load? > No. Unfortunately not. The server has no load, because it is a test server and I am the only user. It works locally, so the inter

Re: speed

2005-08-22 Thread Octavian Rasnita
From: "Philip M. Gollucci" <[EMAIL PROTECTED]> > Octavian Rasnita wrote: > > Yes it involves a MySQL connection, but that MySQL database and that server > > is not used by someone else so I don't understand why some pages show so > > fast while oth

survey

2005-08-26 Thread Octavian Rasnita
What do you think, why the number of hosts which use mod_perl is decreasing continuously as the following survey shows? http://perl.apache.org/outstanding/stats/netcraft.html Teddy

memory resident config hash

2005-08-26 Thread Octavian Rasnita
Hi, I have a config file which contains a hash ref and I get its values by using the do() function. I don't think this is the best solution, because the speed might be slow. That file is accessed on each access to each page. Is it possible to store that hash in the memory somehow? I can store t

Re: survey

2005-08-26 Thread Octavian Rasnita
From: "Perrin Harkins" <[EMAIL PROTECTED]> > On Fri, 2005-08-26 at 12:47 -0400, Adam Prime x443 wrote: > > PHP uses: X-Powered-By: PHP/4.3.11 > > > > To effectively bypass the front end server problem. > > We decided not to do that, since it's intrusive. > PHP users can decide if that HTTP hea

Re: survey

2005-08-26 Thread Octavian Rasnita
Some advocacy ideas: I think that there are a few groups we should target: - The programmers/net admins that are already using mod_perl, but older versions (Macromedia is using Apache 1.3 and mod_perl 1) - the programmers that already know perl but they are using only CGI scripts - The programmers

Re: survey

2005-08-26 Thread Octavian Rasnita
we are talking about advocacy, so why not promoting mod_perl in any way if it is possible and doesn't hurt anyone? I also think that it would be a good idea to set an HTTP header by default which announces mod_perl. The winners are those who created bad but simple programs, simple programming lang

Re: memory resident config hash

2005-08-27 Thread Octavian Rasnita
Thank you, I have done so, but I still have a problem. I used to run those config files using do() for getting the data based on a variable, for example: my $ref = do("$language.ini"); And depending on the value of the $language variable, it is launched a different .ini file. I don't know how t

Re: memory resident config hash

2005-08-28 Thread Octavian Rasnita
Ok, thank you. That example from perlref is what I was searching for, but it seems that it can't do what I want. (I didn't know that programs that use 'require' don't share the memory). I will try to use Config::Simple. I need to store a few hashrefs in the memory. Thank you very much. Teddy

HTML::Template::Compiled

2005-08-29 Thread Octavian Rasnita
Hi, Does anyone use the templating system HTML::Template::Compiled with mod_perl? I have just discovered that it works much faster with mod_perl than HTML::Template and I have also seen that it has some new features but I wouldn't like to start using it, then to discover big bugs. If I won't get

Re: HTML::Template::Compiled

2005-08-30 Thread Octavian Rasnita
From: "Perrin Harkins" <[EMAIL PROTECTED]>> > No. However, I have spoken with the author about it a bit. Depending on > your use, it seems that HTML::Template::JIT may be a bit faster, and has a > decent test suite, which might ease your mind. It is more compatible with > HTML::Template. Howeve

Re: HTML::Template::Compiled

2005-08-30 Thread Octavian Rasnita
Hi, As a feedback, I have seen that HTML::Template::JIT also works under Windows even though "nmake test" give errors. Teddy - Original Message - From: "Sam Tregar" <[EMAIL PROTECTED]> To: "jonathan vanasco" <[EMAIL PROTECTED]> Cc: "

Re: a faster html::template?

2005-09-07 Thread Octavian Rasnita
I have tested HTML::Template::Compiled and I found it as the fastest templating system. It is much much faster than Template-Toolkit, much faster than HTML::Template, and faster than HTML::Template::JIT. I have made the tests under Windows 2000. I didn't use the Benchmark module for making this

Re: a faster html::template?

2005-09-07 Thread Octavian Rasnita
I have used Template-Toolkit, and the time used for parsing those templates used to double the whole time the program needed to run, so the speed of template parsing could be important. Teddy - Original Message - From: "Jonathan Vanasco" <[EMAIL PROTECTED]> To: "mod_perl List" Sent: We

Re: a faster html::template?

2005-09-07 Thread Octavian Rasnita
Hi, From: "Perrin Harkins" <[EMAIL PROTECTED]> > > I suspect you had one of the following problems: > > - Incorrectly configured template caching I don't know too much about caching, but I have just configured TT to create cached templates, so I have used cache. > - Heavy use of method calls in

Re: a faster html::template?

2005-09-08 Thread Octavian Rasnita
From: "Jonathan Vanasco" <[EMAIL PROTECTED]> > You should learn about caching. Tweaking the template caching settings > under any system can vastly improve performance. > I have tried to learn more about caching in TT, but I could find only that I could create cache, and nothing more. No tweaking

mod_perl advocacy

2005-09-11 Thread Octavian Rasnita
Hi, Wouldn't be a good idea (for someone who also know PHP well) to create a program that can create perl scripts from PHP scripts? Also for the languages which are used in ASP... Also making a benchmark tool easy to use that will be able to compare the speed of the original php file with the spee

Re: mod_perl advocacy

2005-09-12 Thread Octavian Rasnita
From: "Tagore Smith" <[EMAIL PROTECTED]> > > Teddy, you've been subscribed to the beginners list for about as long as > I have. Back in the day, I used to help you out. I stopped when it > became clear that you weren't interested in learning. > > After 4 years you should not be a complete beginner

Re: mod_perl advocacy

2005-09-13 Thread Octavian Rasnita
Hmm, sorry. I was just trying to think to something that might make perl more used than PHP. The scope of advocacy is not to make perl better, but to make it be used by more programmers, and most programmers are not super programmers which are able to create an operating system, but just coders th

redirecting

2005-09-30 Thread Octavian Rasnita
Hi, I am trying to redirect a request to another location and the following code works, but the new location is not printed in the address bar. $r->status_line('302 Moved'); $r->headers_out->add('Location' => 'http://localhost/'); return Apache2::Const::OK; return Apache2::Const::REDIRECT; #give

compressing content

2005-10-01 Thread Octavian Rasnita
Hi, I have read the following in O'Reilly's "Practical mod_perl": To compress only outgoing static files, you can look at the mod_gzip and mod_deflate modules for Apache. I have asked on Apache's users mailing list, and they said that mod_deflate can compress dynamic content also. Why is it sug

Setting a module to handle the requests to /

2005-10-01 Thread Octavian Rasnita
Hi, Is it possible to configure httpd.conf in such a way that when the users request the / directory, that module will handle it, but if the users request for a static file like /style.css for example, that file is served? I have tried: SetHandler perl-script PerlResponseHandler Foo::Bar If t

What am I missing?

2005-10-05 Thread Octavian Rasnita
Hi, I am trying to use Apache::Session with mod_perl because I heard that it is a little faster than CGI::Session. The problem is that I cannot save variables in the created sessions. They are created, but no data is saved. Here is what I have tried and I am sure I am missing something: #Create

Re: What am I missing?

2005-10-05 Thread Octavian Rasnita
From: "Barksdale, Ray" <[EMAIL PROTECTED]> > This needs to stay on the list. > > Assuming you did create your table as a MyISAM table > which I think forces atomic updates (implicit commits), > that shouldn't be a problem and it is writing something. > > I've only used this thing once so I'm no ex

Re: What am I missing?

2005-10-06 Thread Octavian Rasnita
tion arrived! Is it just a temporal anomaly? or some form of > mod_perlish quantum tunnelling? Ain't this list fab. ;) > > > Original Message > From: "Barksdale, Ray" <[EMAIL PROTECTED]> > To: "Octavian Rasnita" <[EMAIL PROTECTED]

Re: What am I missing?

2005-10-06 Thread Octavian Rasnita
From: "Tom Schindl" <[EMAIL PROTECTED]> > > If I comment out "untie %session;, the program doesn't give errors, but if I > > let that line in the program, it gives an error in the browser "The server > > encountered an internal error or misconfiguration and was unable to complete > > your request.

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2005-10-08 Thread Octavian Rasnita
Hi, I have just installed perl 5.8.7 and mod_perl 2.01 with no errors but I can't install libapreq2 due to the following error after running: # perl Makefile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for m

A handler just for the / location

2005-10-13 Thread Octavian Rasnita
Hi, I have asked on this list about how I can put a handler listen just to the / location, but not to other locations which are not handled by other perl handlers. I found the answer, and here it is: Instead of using: SetHandler perl-script PerlResponseHandler ModPerl::Testing I can use: S

Re: A handler just for the / location

2005-10-13 Thread Octavian Rasnita
From: "Geoffrey Young" <[EMAIL PROTECTED]> > > / is required per the rfc, so you cannot omit it. go ahead and try it via > telnet on your favorite site :) > > --Geoff Well, here it is just a test: telnet www.site.com 80 GET HTTP://www.site.com HTTP/1.1 Host: www.site.com And it works. So my opi

Re: A handler just for the / location

2005-10-13 Thread Octavian Rasnita
From: "Philip M. Gollucci" <[EMAIL PROTECTED]> > Octavian Rasnita wrote: > > Instead of using: > > > > > > SetHandler perl-script > > PerlResponseHandler ModPerl::Testing > > > > > > I can use: > > > > > > S

error

2006-01-09 Thread Octavian Rasnita
Hi, [Tue Jan 10 22:05:34 2006] [error] [client 127.0.0.1] Can't locate object method "FETCH" via package "APR::Table" at e:/web/modules/Modul.pm line 35.\n The line 35 of that script contains: my ($session_id) = $r->headers_in->{Cookie}; I have read perldoc APR::Table and I have seen that it sa

Re: error

2006-01-09 Thread Octavian Rasnita
From: "Philip M. Gollucci" <[EMAIL PROTECTED]> Subject: Re: error > > [Tue Jan 10 22:05:34 2006] [error] [client 127.0.0.1] Can't locate object > > method "FETCH" via package "APR::Table" at e:/web/modules/Modul.pm line > > 35.\n > > The following works me... I cut and pasted your "line 35" I ha

Re: A question for the newbies

2006-02-17 Thread Octavian Rasnita
From: "Jonathan" <[EMAIL PROTECTED]> > Just because I like to advocate TAL: > > > > First item? > Even item? > Odd item? > Replaced by Foo{'blah'}{'var'} > Replaced by Foo{'blah'}->method() > > > > > template: > renders in browser without code, as it would be seen > i

Broken pipe

2006-02-17 Thread Octavian Rasnita
Hi, I have seen in the error log of Apache the following line (for more times, exactly the same): [Fri Feb 17 13:58:04 2006] [info] [client 83.103.222.187] (32)Broken pipe: core_output_filter: writing data to the network I can see [info]. Do this means that it is not a real error but just a warni

Re: A question for the newbies

2006-02-17 Thread Octavian Rasnita
From: "Jonathan Vanasco" <[EMAIL PROTECTED]> > > In a production environment, I found this: > HTML::Template::JIT was the fastest. it averaged something like . > 0003 seconds > Template::Toolkit was around .003 > Petal was around .008 (without pre-caching) > > my application logic was about .08

2 versions

2006-03-07 Thread Octavian Rasnita
Hi, Is it possible to have 2 versions of perl that use mod_perl and libapreq? I don't need to use 2 versions permanently, but I need to have a version that works while I install another version of perl with all the needed modules including mod_perl and libapreq, then switch to the new version. I

Re: 2 versions

2006-03-08 Thread Octavian Rasnita
From: "Richard Kelsch" <[EMAIL PROTECTED]> > > Is it possible to have 2 versions of perl that use mod_perl and libapreq? > > Yes. You just need to tell your new perl what path to live in when you > build it. I think the option is named "PREFIX." Same for apache, and > make sure you use the righ

Returning 304 Not Modified

2006-04-12 Thread Octavian Rasnita
Hi, I am working on a program that should return HTTP/1.1 304 Not Modified if the page meets the conditions specified in the browser's request. (And I might need to return other status codes in the future). I have made a perl module that does: my $status = $params->{r}->meets_conditions(

ModPerlCookBook.org

2006-04-14 Thread Octavian Rasnita
Hi, Can anyone tell me if www.modperlcookbook.org is really down (for a few days) or I just have some problems accessing it? I am trying to find how to return different status codes based on some conditions. Thanks. Teddy

Re: ModPerlCookBook.org

2006-04-14 Thread Octavian Rasnita
From: "Geoffrey Young" <[EMAIL PROTECTED]> > > Can anyone tell me if www.modperlcookbook.org is really down (for a few > > days) or I just have some problems accessing it? > > it works fine for me :) > Hmm, I have tried again from my computer, and from other 2 servers on my city, but it cannot be

redirecting

2006-04-15 Thread Octavian Rasnita
Hi, Is the following code correct? $r->headers_out->set(Location => '/ss'); I have seen that if the "http://"; and the host name is not given, Internet Explorer displays the page correctly, but I don't know if this will work with all the browsers. If you know more, please point me to some pages

Using Apache::DBI

2006-05-08 Thread Octavian Rasnita
Hi, I thought the best way of using Apache::DBI is to put the following code in the startup.pl script: use Apache::DBI (); Apache::DBI->connect_on_init('DBI:mysql:database=database_name;host=10.50.28 .37', 'user', undef, {PrintError => 1, RaiseError => 0, AutoCommit => 1}); use DBI (); But I und

  1   2   >