Can I parse content that has been returned to user by simple cgi script?

2002-10-15 Thread Ruslan U. Zakirov
Hello! I want to upgrade my project with implementing some feature. Project was writen for mod_cgi, but I would like to parse content that was generated by my scripts to implement something like SSI or Apache::UCase and etc. I don't know how to set stacked handler after mod_cgi. May be it's wrong

Re: ap_rwrite()/ap_rvputs() called in PerlCleanupHandler

2002-10-15 Thread Ruslan U. Zakirov
Hello! internal_redirect() The required argument is an absolute URI path on the current server. The server will process the URI as if it were a whole new request, running the URI translation, MIME type checking, and other phases before invoking the appropriate content handler for the new

Re: ap_rwrite()/ap_rvputs() called in PerlCleanupHandler

2002-10-15 Thread Ruslan U. Zakirov
Hello again. May be it helps to solve your problem. is_initial_req() There are several instances in which an incoming URI request can trigger one or more secondary internal requests. An internal request is triggered when internal_redirect() is called explicitly, and it also happens behind the

Re: Can I parse content that has been returned to user by simple cgi script?

2002-10-16 Thread Ruslan U. Zakirov
I want to upgrade my project with implementing some feature. Project was writen for mod_cgi, but I would like to parse content that was generated by my scripts to implement something like SSI or Apache::UCase and etc. PH You can't do that. However, you can run your CGI scripts under PH

Re: Can I parse content that has been returned to user by simple cgi script?

2002-10-16 Thread Ruslan U. Zakirov
AA perldoc cgi_to_mod_perl AA perldoc mod_perl_traps AA http://perl.apache.org/docs/1.0/guide/porting.html PEE There aren't many problems with Apache::PerlRun, as it goes to great PEE lengths to be a direct equivalent to mod_cgi so that dirty scripts can run. PEE Anyway, the Guide is always here

Re: What module I have to choose?

2002-10-20 Thread Ruslan U. Zakirov
GH Congratulations! Thank you. GH Install them, then try the commands GH perldoc Apache::OutputChain GH and GH perldoc Apache::Filter GH which will tell you about them. You can look at the source code too. Have done. Each documents talking only about there own modules. But I'm interesting in

What module I have to choose?

2002-10-20 Thread Ruslan U. Zakirov
Hello! I've wrote my module that uses Apache::Forward example from Writing Apache modules with Perl and C. Module generates site navigation bar and insert it in content that was returned by simple CGI scripts. I've used Apache::PerlRun in stacked handlers to run CGI scripts, like PerlHandler

Get file list of the dir.

2002-10-27 Thread Ruslan U. Zakirov
I'm writing handler which generate some html from files in requested dir if requested file does not exist. I have a problem with getting file list of the directory. I've tried to use IO::Dir, like this my htmls; my $dh = new IO::Dir ($req_dir); if (defined $dh) { while (defined($_

Re: Get file list of the dir.

2002-10-28 Thread Ruslan U. Zakirov
RK But this doesn't seem to be the problem ... What's printed in the RK browser? Is there anything in the error logs? Is the name of the RK directory to be read input from the user (if so, are you running RK under taint mode?), and are the permissions appropriate? Here is my module's code... use

Re: Get file list of the dir.

2002-10-28 Thread Ruslan U. Zakirov
Thank you for your help! I'm terribly sorry for getting your time, It's my fault. There was an error in my code. I'm inattentive foolish man. But I've known new methods of reading directory listening. Best regards. ___ Sorry for my English.

Communication between handlers

2002-10-29 Thread Ruslan U. Zakirov
Hi! Please point me to good documentation about subj. Is it possible to initialize some class(MyProjConfig for example) with some params in first content handler, and then send it trought other handlers, all it within only one request? Thank you beforehead.

Re: FW: mod_perl / PerlAuthenHandler question

2002-10-29 Thread Ruslan U. Zakirov
MJJ Mitchel, Jennifer (Jem) wrote: MJJ The machine does belong to my org my login does not have root access. I will do the MJJ /perl-status?hooks as soon as I can be let onto the machine with root access. MJJ MJJ I did print out the global hash %Apache::MyConfig::Setup and here is the

How sub handler was called.

2002-11-22 Thread Ruslan U. Zakirov
Hello, all! May I understand in my handler sub how it was called? Was it called by Apache process in stacked handlers chain or it was called by some other module with call MyMod::handler($r)? Could i do it without adding some special parametrs? Beforehead thanks, Ruslan.

Inserting a handler in stack of handlers.

2003-01-13 Thread Ruslan U. Zakirov
Hello All! Short synopsis: How to push handler just after handler that working now? More about the problem. I've got main handler, that forms stack of handlers from query string by calling push_handlers(). Then each module doing his job. Some handlers needs to put another hook just

Re: Inserting a handler in stack of handlers.

2003-01-14 Thread Ruslan U. Zakirov
SB Geoffrey Young wrote: Ruslan U. Zakirov wrote: Hello All! Short synopsis: How to push handler just after handler that working now? More about the problem. I've got main handler, that forms stack of handlers from query string by calling push_handlers(). Then each module

DECLINE, ERRORs in the middle of hanlers stack

2003-03-07 Thread Ruslan U. Zakirov
Hello All! Stacked handlers is a very useful technology, but as I think incomplete. I need some suggestions. My project split content handler in the few parts. And each handler send part of the requested page to user, but sometimes I must stop proccessing and return DECLINE, redirect user

[OT] Perfomance tests, How?

2003-04-02 Thread Ruslan U. Zakirov
Hello All! I need to test my project perfomance. Is there any OpenSource projects like WebBench and other in the Internet? Best regards. Ruslan.

segmentation fault under mod_perl+XML::XPath

2003-07-02 Thread Ruslan U. Zakirov
Hello. I've tried to use XML::XPath under mod_perl 1.27 and Apache 1.3.27, but got segmentation fault with this peace of code: use XML::XPath; my $mfname='/proj/optolink/html/.meta.xml'; my $xp = XML::XPath-new(filename = $mfname); my $ns = $xp-find('//[EMAIL PROTECTED]yes]'); Under

segmentation fault under mod_perl+XML::XPath

2003-07-05 Thread Ruslan U. Zakirov
Hello. I've tried to use XML::XPath under mod_perl 1.27 and Apache 1.3.27, but got segmentation fault with this peace of code: use XML::XPath; my $mfname='/proj/optolink/html/.meta.xml'; my $xp = XML::XPath-new(filename = $mfname); my $ns = $xp-find('//[EMAIL PROTECTED]yes]');

Re: segmentation fault under mod_perl+XML::XPath

2003-07-14 Thread Ruslan U. Zakirov
Hello, Ged and other. Thanks for long suggestion letter. I've solved my problem with mod_perl compiled staticaly. GH Hi there, GH Haven't seen any replies, so I thought you'd like to hear from someone. :) Thanks... GH On Wed, 2 Jul 2003, Ruslan U. Zakirov wrote: I've tried to use XML

Re: templating system opinions

2003-07-20 Thread Ruslan U. Zakirov
Barry Hoggard wrote: I used to use HTML::Template for projects, but I moved to Template::Toolkit because I felt the former's syntax was just too limited. I know we want to separate code and logic, but H::T keeps me [skip] JE Jesse Erlbaum JE Programmer: Get object, Get object attribute