Expect And Apache

2003-06-28 Thread Rasoul Hajikhani
Hello there, I am wondering how to stop Expect writting to stdout its error message? Does any one have any ideas? I appreciate all your comments. -r

mod_perl And Redirection

2003-06-26 Thread Rasoul Hajikhani
Hello there, My apologies if you already have received this email, but I keep getting a message that the mail was not sent. We have just upgraded to : Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27 configured Running perl 5.6.1. I am getting 302 error message on my redirects. This

Expect and Apache

2003-06-26 Thread Rasoul Hajikhani
Hello there, I am wondering how to stop Expect writting to stdout its error message? Does any one have any ideas? I appreciate all your comments. -r

IPC::Open3

2003-06-16 Thread Rasoul Hajikhani
Hi there, I am having trouble making open3 work with perl, v5.6.1 built for i386-linux. I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27. My problem is that I can't write to STDIN. Does any one know of any solution to this problem? Has any one encountered the same issue?

Apache::DBI and db proxies

2002-11-25 Thread Rasoul Hajikhani
Folks, is there any benefit in using Apache::DBI when all db calls ought to go through db proxies? Thanks in advance -r

PerlAccessHandler

2002-07-26 Thread Rasoul Hajikhani
Folks, My PerlAccessHandler is being executed twice per each request. Is this a normal behavior for an access handler? Here is my .conf entry Location /myHandler SetHandler perl-script # run is a wrapper for my handler # all common methods which many of my handlers

Died

2002-06-26 Thread Rasoul Hajikhani
Folks, I get the strangest object when I tried to print my object to log file: Died. Has anyone seen this before. This is ofcourse my container object that I use in mod_perl to save the request's response. Thanks in advance. -r

Setting Cookies

2002-06-13 Thread Rasoul Hajikhani
Hello folks, Yesterday I posted a question about PerlTransHandler and received a lot of responses. Thanks to all of you who replied. However, my problem persists. I try to be more precise in explaining the problem today. My login module sets a few cookies that expire 24 hrs after they are set.

PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
Hello folks, I am trying to implement a simple PerlTransHandler to change: http://myserver/ to http://myserver.rhythm.com/ And here is my code: package MIS::GENERAL::FixURL; use Apache::Constants qw(DECLINED); use strict; sub handler { my $r = shift; my $uri = $r-uri;

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
I am realy trying to make sure that all requests for http://myserver/ are treated as http://myserver.rhythm.com/ so that my other applications that depend on reading cookies down the request chain could actually do so... -r Randal L. Schwartz wrote: Rasoul == Rasoul Hajikhani [EMAIL

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
A funny thing is happening with my PerlTransHandler... It is not being called at all... :( I have added warn messages but they never appear in the error log. I am at a loss and hoping that some one may have an answer... -r Lyle Brooks wrote: Quoting Rasoul Hajikhani ([EMAIL PROTECTED

Re: separating C from V in MVC

2002-06-03 Thread Rasoul Hajikhani
I really enjoyed this topic... I hope you guys are planning on actually documenting your ideas. I would love to read and learn more about this topic. -r

pnotes notes and subprocess_env

2002-04-18 Thread Rasoul Hajikhani
Folks, I don't seem to be able to make pnotes, notes or subprocess_env work. I am trying to pass a value from a handler to another, and from what I have read in the Eagle, and cook book, the request ought to be the main one in order for the pnotes, ... to work. So Here is the snippet of my code:

mod_perl Cook Book

2002-04-11 Thread Rasoul Hajikhani
Folks, I got my mp cb last night and it looks like a good read. Thanks to all of you who responded and recommended the book. -r

OT: Status Page

2002-04-10 Thread Rasoul Hajikhani
Folks, please excuse this off topic thread, but I thought since a lot of you work in creating a informative user experience, some of you may be able to help me. I am trying to create a status page, the kind that shows a horizental status bar that looks to work in real time and changes as events

Apache::File

2002-04-10 Thread Rasoul Hajikhani
Folks, The Apache::File man pages indicate that ($name,$fh) = Apache::File-tmpfile; returns a fh ready to write to. So far so good. In case of wanting to read from it, here is what I do: # Is this necessary? $fh-close() or die Could not close $name: $!\n; $opfh-open($name); local $/

Apache::File correction

2002-04-10 Thread Rasoul Hajikhani
Folks, The Apache::File man pages indicate that ($name,$fh) = Apache::File-tmpfile; returns a fh ready to write to. So far so good. In case of wanting to read from it, here is what I do: # Is this necessary? $fh-close() or die Could not close $name: $!\n; $fh-open($name); local $/=

Re: Apache::File correction

2002-04-10 Thread Rasoul Hajikhani
Robert Landrum wrote: At 1:44 PM -0700 4/10/02, Rasoul Hajikhani wrote: Folks, The Apache::File man pages indicate that ($name,$fh) = Apache::File-tmpfile; returns a fh ready to write to. So far so good. In case of wanting to read from it, here is what I do: # Is this necessary

mod_perl Cook Book

2002-04-05 Thread Rasoul Hajikhani
Hello folks, Has anyone purchased the mod_perl cook book from this list? If so, what do you think of it? Is it a good buy? Appreciate feed back. Thanks in advance -r

Open3

2002-04-04 Thread Rasoul Hajikhani
Folks, I have asked this question before, and received answers that have helped me in quest. However, my problem persists. So I would like to direct this question to those who have used gpg, and open3. I am having trouble writing to stdin when an apache thread calls open3. However, the same code

Open3

2002-04-03 Thread Rasoul Hajikhani
Hello folks, I am writing a web based interface to gpg and am using IPC::Open3 and IO::Select to manage STDIN, STDOUT and STDERR handles. But, I can not get stdin to work properly. Here is my code: $gpgCommand = gpg --homedir $home --no-default-keyring --secret-keyring rasoul.asc --decrypt

IPC::Open3 Corrected code version

2002-04-03 Thread Rasoul Hajikhani
Hello folks, I am writing a web based interface to gpg and am using IPC::Open3 and IO::Select to manage STDIN, STDOUT and STDERR handles. But, I can not get stdin to work properly. Here is my code: $gpgCommand = gpg --homedir $home --no-default-keyring --secret-keyring rasoul.asc --decrypt

Re: Open3

2002-04-03 Thread Rasoul Hajikhani
Elizabeth Mattijsen wrote: At 01:44 PM 4/3/02 -0800, Rasoul Hajikhani wrote: Hello folks, I am writing a web based interface to gpg and am using IPC::Open3 and IO::Select to manage STDIN, STDOUT and STDERR handles. But, I can not get stdin to work properly. Here is my code: I am using

open3 and mod_perl

2002-03-13 Thread Rasoul Hajikhani
Hello folks, I am writing a web interface for the GPGP module that would allow users to create a new public and private key and adds them to the corporate key ring. I will be useing IPC::Open3 and IO::Select to control stdin and stdout of GPGP. Are there any issues that I should be aware w/ these

Document Caching

2002-03-06 Thread Rasoul Hajikhani
Hello People, Need your advise on how to cache a template under mod_perl... Any ideas? Thanks in advance -r

Re: Document Caching

2002-03-06 Thread Rasoul Hajikhani
Robert Landrum wrote: At 12:28 PM -0800 3/6/02, Rasoul Hajikhani wrote: Hello People, Need your advise on how to cache a template under mod_perl... Any ideas? Thanks in advance -r #startup.pl open(FILE,/path/to/tmpl); $MY::TEMPLATE .= while(FILE); close(FILE); Provided that you

Formatted Printing

2002-02-26 Thread Rasoul Hajikhani
Hello folks, I have just writen an online ordering system for our company using mod_perl. The user must also be able to print the form, preserving the format. Since we use netscape (4.5) for Irix 6.5, I can't use the print button of the browser, the format is not preserved. Any one know of any

IPC::ShareLite

2002-01-31 Thread Rasoul Hajikhani
Folks, I have created a data structure and used IPC::ShareLite to save it in the main memeory. Can someone tell me how to look at it and destroy it. Thanks -r

can not set param

2002-01-29 Thread Rasoul Hajikhani
Folks, The apache::Request docs indicate that param can be used to set the query string. However, it fails when I do something like this: my $r = Apache::Request-new(shift); ... my $host= $r-hostname; my $uri

Re: can not set param

2002-01-29 Thread Rasoul Hajikhani
Geoffrey Young wrote: Rasoul Hajikhani wrote: Folks, The apache::Request docs indicate that param can be used to set the query string. However, it fails when I do something like this: my $r = Apache::Request-new(shift

mod_perl installation

2002-01-21 Thread Rasoul Hajikhani
Folks, I get this message when running Makefile.pm: Your Perl is configured to link against libgdbm, but libgdbm.so was not found. You might need to install Perl from source I have checked the /usr/lib directory for libgdbm.so and it is not there. Here is the result of perl -V | grep libs:

Apache.pm failed to load!.

2002-01-21 Thread Rasoul Hajikhani
Folks, After installing mod_perl-1.25 apache_1.3.22 I get this error message! I know this is a really serious error, but I was wondering if any one could tell me why I would get this since the installation of both mod_perl and apache went through without a problem?! -r

Re: Apache.pm failed to load!.

2002-01-21 Thread Rasoul Hajikhani
___cliff rayman___ wrote: first off, that looks like a spanking brand new version of apache but an older version of mod_perl. you will probaby be happier with mod_perl-1.26 what happens when you try the following from the command line? perl -MApache -e 1 Rasoul Hajikhani wrote

mod_perl failed at make test

2002-01-21 Thread Rasoul Hajikhani
After running make test (for the first time) here is waht I get: *** Error code 2 (bu21) mod_perl make test gives me this: (cd ../apache_1.3.22 PERL5LIB=/home/rasoul/mod_perl-1.26/lib make) === src === src/regex === src/regex === src/os/unix === src/os/unix === src/ap === src/ap === src/main

A request's Origins

2001-11-21 Thread Rasoul Hajikhani
Hello folks, I am trying to find out where (which machine) a request has come from. We have several web servers running on different machines serving different documents, so it is possible to jump servers back and forth. This means that I would have to know what prev-uri was/is and what r-uri

Re: no_cache()

2001-11-16 Thread Rasoul Hajikhani
Ask Bjoern Hansen wrote: On Thu, 15 Nov 2001, Rasoul Hajikhani wrote: I am using $request_object-no_cache(1) with no success. Isn't it supported any more? Can some one shed some light on this for me... What do you mean with no success? What are you trying to do? -- ask bjoern

Re: no_cache()

2001-11-16 Thread Rasoul Hajikhani
Rob Bloodgood wrote: #set the content type $big_r-content_type('text/html'); $big_r-no_cache(1); # some more code return OK; You *are* remembering to do $r-send_http_header(); somewhere in (some more code), arent you? L8r, Rob

no_cache()

2001-11-15 Thread Rasoul Hajikhani
Hello folks, I am using $request_object-no_cache(1) with no success. Isn't it supported any more? Can some one shed some light on this for me... #set the content type $big_r-content_type('text/html'); $big_r-no_cache(1); # some more code return OK;

Somewhat relevant

2001-10-23 Thread Rasoul Hajikhani
Folks, if this looks like an off topic, my apologies in advance... I have written an accessing scheme that checks for the existence of couple of cookies and if not present, the user is rerouted to a login page. So far simple stuff. The problem is that my boss is saying that it should work with a

IPC::Shareable

2001-10-16 Thread Rasoul Hajikhani
Pardon the off topic thread, I am trying to make IPC::Shareable work with my script, however I get this error: IPC::Shareable::SharedMem: shmget: Permission denied at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 [Tue Oct 16 14:44:15 2001] [error] Could not create shared memory

Re: IPC::Shareable

2001-10-16 Thread Rasoul Hajikhani
Perrin Harkins wrote: I am trying to make IPC::Shareable work with my script, however I get this error: IPC::Shareable::SharedMem: shmget: Permission denied at /usr/local/lib/perl5/site_perl/5.005/IPC/Shareable.pm line 456 [Tue Oct 16 14:44:15 2001] [error] Could not create shared

Re: ANNOUNCE: Apache::OpenIndex

2001-09-27 Thread Rasoul Hajikhani
George Sanderson wrote: Apache::OpenIndex (OpenIndex-1.00.tar.gz) was uploaded to CPAN on 14Sep2001 and is currently released. This was my first module. I enjoyed journey. OpenIndex provides a file manager for an Apache modperl web site using a web browser. It is a extensive rewrite of

Setting headers

2001-09-14 Thread Rasoul Hajikhani
Hello, I am using template toolkit to generate dynamic content and I was wondering if there is any way to set a cookie after returning OK. Here is what I mean. 1-There are two scripts that check for access privileges of a user. One sets two cookies and the other (mine) sets three cookies. 2- My

MLDBM::Sync usage

2001-09-06 Thread Rasoul Hajikhani
Hi all, I am trying to use MLDBM::Sync to create persistent %hash. Has any one used this module? I was reading the archive mail between Joshua and Perrin and or do you tie/untie on every request? yes ?? Also, I would appreciate it if someone could direct me to a code snipet for this module.

Help with accessing system

2001-09-05 Thread Rasoul Hajikhani
I need some advice on implementing an accessing system. I have already implemented a few systems that now require some sort of advance accessing mechanism. I say advance because some parts of the systems that I have written are accessible by all, and some other parts should be accessible by

mod_perl build

2001-08-30 Thread Rasoul Hajikhani
Hello, I am wondering whether there is a way of knowing how mod_perl was built? I have inhereted a box with mod_perl configured. Thanks -r

$r-args()

2001-08-29 Thread Rasoul Hajikhani
Hello, I already have asked this question and got an answer for it, so please accept my forwarded apologies. However, I was trying something else and got stuck. I know in order to pass around query string, or form data, pnotes may be used. However, I am trying something else and it does not seem

$r-args()

2001-08-29 Thread Rasoul Hajikhani
Hello, I already have asked this question and got an answer for it, so please accept my forwarded apologies. However, I was trying something else and got stuck. I know in order to pass around query string, or form data, pnotes may be used. However, I am trying something else and it does not seem

Re: $r-args()

2001-08-29 Thread Rasoul Hajikhani
Robert Landrum wrote: At 9:36 AM -0700 8/29/01, Rasoul Hajikhani wrote: Hello, I already have asked this question and got an answer for it, so please accept my forwarded apologies. However, I was trying something else and got stuck. I know in order to pass around query string, or form data

Re: $r-args()

2001-08-29 Thread Rasoul Hajikhani
Robert Landrum wrote: Which should solve your problems (I think). I am affraid it did not work. I have no problem reading the data in the current handler, but right after redirect, which is also required to read the data, I loose all the POSTED data. Performing a redirect causes

Re: $r-args()

2001-08-29 Thread Rasoul Hajikhani
Robert Landrum wrote: At 11:19 AM -0700 8/29/01, Rasoul Hajikhani wrote: Robert Landrum wrote: Which should solve your problems (I think). I am affraid it did not work. I have no problem reading the data in the current handler, but right after redirect, which is also required

Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani
Ken Williams wrote: [EMAIL PROTECTED] (Rasoul Hajikhani) wrote: use lib qw(...);. I have tried declaring: use MY::Perl::Control::WebAccess; in my startup.pl, with the same Here it is: Undefined subroutine My::Perl::Control::WebAccess::handler called. Looks like you need to check

Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani
Stas Bekman wrote: On Thu, 23 Aug 2001, Rasoul Hajikhani wrote: ___cliff rayman___ wrote: and what do the error logs say? Rasoul Hajikhani wrote: I know this question will sound primitive to most of you, however, I have this nagging error which won't go away

push_handlers

2001-08-24 Thread Rasoul Hajikhani
Hi Is there any way that I could use $r-push_handlers(PerlHandler = myHandler); and send/include a query string with that? I need to push another handler with some specific form data. thanks -r

push_handlers

2001-08-24 Thread Rasoul Hajikhani
Hello again, The problem with push_handlers, I just realized, is that the PerlHandler argument assumes that its argument is a method, sub, within the same package/handler. However, I need some other handler to take over and finish the job. Chaining won't do since I don't know before hand which

Thanks

2001-08-24 Thread Rasoul Hajikhani
You guys/gals are the most helpful bunch of people I have had the pleasure of interacting with. You ROCK, all of YOU. Thanks

PerlModule Error

2001-08-23 Thread Rasoul Hajikhani
I know this question will sound primitive to most of you, however, I have this nagging error which won't go away. In my httpsd.conf, I have declared PerlModule MY::Perl::Control::WebAccess which I know is where it is supposed to be. My @INC does not include the path to that directory, however,

Re: PerlModule Error

2001-08-23 Thread Rasoul Hajikhani
___cliff rayman___ wrote: and what do the error logs say? Rasoul Hajikhani wrote: I know this question will sound primitive to most of you, however, I have this nagging error which won't go away. In my httpsd.conf, I have declared PerlModule MY::Perl::Control::WebAccess which I

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rasoul Hajikhani
Benjamin Trott wrote: PH Don't open a connection during startup. If you do, it will be shared when PH Apache forks, and sharing a database handle is bad for the same reasons PH sharig a file handle is. Open a connection in the child process instead. I will second this. I've done this

Apache::DBI

2001-08-22 Thread Rasoul Hajikhani
I am a bit confused! Can Apache::DBI handle db calls through proxies? -r

Out of Memory

2001-08-16 Thread Rasoul Hajikhani
I am getting out of memory error message in my error log. Can any one suggest a way in finding this memory leak? Thanks in advance... -r PS: it is a simple update of a record but I get: Out of memory during large request for 536875008 bytes... God help me :(

Re: Out of Memory

2001-08-16 Thread Rasoul Hajikhani
[EMAIL PROTECTED] wrote: Rasoul Hajikhani writes: Yes. It has three gig of ram. Is Template Toolkit memory intensive? I was told that the swap was turned off on that machine. Swap was completly turned off? That isn't good... should have a small amount of swap... You may be asking

PerlModule

2001-08-16 Thread Rasoul Hajikhani
My apache server does not start up when I add PerlModule B::TerseSize to the httpsd.conf file. Or any PerlModule flag. Any one can tell me why? I am trying to determine a leakage in my script... thanks -r

Apache::Request

2001-08-15 Thread Rasoul Hajikhani
I get the following error on my $i = Apache::Request-instance($r); Can't locate object method instance via package Apache::Request Why is that? Is the method not available? Are the docs outdated? Any comments welcomed... :) I am running mod_perl/1.22... -r

Re: Apache::Request

2001-08-15 Thread Rasoul Hajikhani
I am reading the online docs... -r Robin Berjon wrote: On Wednesday 15 August 2001 22:11, Rasoul Hajikhani wrote: I get the following error on my $i = Apache::Request-instance($r); Can't locate object method instance via package Apache::Request Why is that? Is the method

Re: Children dying

2001-08-14 Thread Rasoul Hajikhani
Jim Smith wrote: On Tue, Aug 14, 2001 at 10:48:48AM -0400, Aleksandr Vladimirskiy wrote: Hi all, I am running a perl 5.6.0, mod_perl 1.26, apache 1.3.19 on Solaris 2.6. I get the following error in my logs: [Tue Aug 14 10:45:10 2001] [notice] child pid 2630 exit signal

mod_perl s//g

2001-08-14 Thread Rasoul Hajikhani
Are there any traps that I should be aware of when using s//g? I was reading the online mod_perl docs and could not find anything to that effect. But I do recall working with Perrin (correct me if I am wrong Perrin) that there were some issues with using global tag in substitutions. -r

Apache::Cookie

2001-08-09 Thread Rasoul Hajikhani
I must first thank all of you that helped and apologize to you... I now know why I was not able to read and write my cookies. The Domain. my module is now happy to accommodate my request after changing from http://localhost/...; to the appropriate http://mymachine.mydomain.com/...;. Thanks to you

Help with cookies...

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Help with cookies

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Cookies and Handlers

2001-08-08 Thread Rasoul Hajikhani
Why is setting cookies so complex in mod_perl... Can any one tell me how I can set a few cookies in one handler and hand over the operation to another handler to do some more stuff... I have tried everything that I know (that's not much) but I still can not set the cookies... here is the snippet

Apache::Cookie

2001-08-06 Thread Rasoul Hajikhani
Hello, Is there a bug in Apache::Cookie? I am trying to set a cookie using: $webuname = Apache::Cookie-new( $r, -name = 'randh_webuname', -value =$user,

[Fwd: Help with @ISA]

2001-08-03 Thread Rasoul Hajikhani
Hello there, I have a problem and I am not sure how to explain it... So please forgive me if I sound like a rookie, since I am that. I have a packge called: my::foo in which I have declared the following: package my::foo; @my::foo::ISA = qw( my::bar ); . . . sub handler { my $r =