Apache::ASP internal redirects

2000-07-09 Thread Remi Fasol

hello.

i'm testing the new $Server-Transfer for internal
redirects but have run into a minor problem.

when i try to use File::Basename::basename $0 to
determine the name of the current Apache::ASP file, $0
contains the name of the previous file if the current
file had been called by $Server-Transfer.

is there a way to determine the correct filename?

thanks again,
remi

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



Re: Hope you didn't miss me too much

2000-07-09 Thread Adi

Must be nice being your own boss!  I think we missed not just your technical
expertise but also your moral guidance (don't worry though, there wasn't
another eToys thread).  Glad to have you back...  -Adi

"Jeffrey W. Baker" wrote:
 
 I got a three week vacation from technology as a wedding gift from myself.
 I'm back now, and I'll get around to answering many of the Apache::Session
 questions I recieved in the coming days.
 
 Cheers,
 Jeffrey




Re: Script that stays on the same page

2000-07-09 Thread will trillich

Pierre-Yves BONNETAIN wrote:
 
Hello,
 
For my server, I need to write some script that will be 'regularly'
 triggered (GET or POST), but that will NOT send the user to another page. The
 user must stay on the same page he is, without ANY html being exchanged as
 a result of the script.
This will be used to change parameters on the user's session, but since
 those params will not affect the page the user is currently looking at, there
 is no need to send HTML back.
So, 1/ can it be done ? 2/ How ?

www.macconnection.com or www.pcconnection.com do a nice job of this.
see any of their 'smart selectors'... every time you select a menu
option, the number of items 'found' by the /server/ scripts, based on
the users' new parameters, pop up into a text box. very slick.

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Their is five errers in this sentance.



Re: Script that stays on the same page

2000-07-09 Thread jeff

what about returning the http no response code 204. as in

print $query-header('text/html','204 No response');

will trillich wrote:

 Pierre-Yves BONNETAIN wrote:
 
 Hello,
 
 For my server, I need to write some script that will be 'regularly'
  triggered (GET or POST), but that will NOT send the user to another page. The
  user must stay on the same page he is, without ANY html being exchanged as
  a result of the script.
 This will be used to change parameters on the user's session, but since
  those params will not affect the page the user is currently looking at, there
  is no need to send HTML back.
 So, 1/ can it be done ? 2/ How ?

 www.macconnection.com or www.pcconnection.com do a nice job of this.
 see any of their 'smart selectors'... every time you select a menu
 option, the number of items 'found' by the /server/ scripts, based on
 the users' new parameters, pop up into a text box. very slick.

 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
 Their is five errers in this sentance.




--
Jeff Saenz
[EMAIL PROTECTED]





Re: best encryption module

2000-07-09 Thread Matt Carothers



On Fri, 7 Jul 2000, clayton cottingham aka drfrog wrote:

 whats the best encryption module for use with mod perl?
 i want to encrypt passwords store in a db and then be able to check 
 what a users inputs against it

Perl has a built-in crypt() function.  The actual encryption algorithm used
depends on your system's C library.  Older systems still use 56-bit DES.  
Newer ones may use something stronger like MD5 or Blowfish.  See your crypt(3)
manpage and `perldoc -f crypt` for more information.

- Matt




Forking off lengthy processes

2000-07-09 Thread Jeremy Howard

I've just read the Guide's advice on fork and system calls, but it
doesn't really seem to offer a resolution to the problems it raises.

I'm trying to set up an SMS gateway for my webmail users. The gateway
just uses LWP to contact a web-SMS provider and sends a POST request
(following some redirects in the process). This can be a lengthy process,
so rather than have my mod_perl process waiting, I'd like to pass on the
request to another process. Here are the potential solutions I can think
of and their problems:
* fork(): Memory hog, since it copies the entire Apache process (is this
right--does it share the memory for all the modules etc...?)
* system(): Slow--would have to start up a new Perl process
* Create a simple preforking server and have mod_perl just pass a request
to it through a socket: Seems like overkill.

The most hopeful possibility seems to be fork(), but the Guide says to
avoid it. Isn't almost all the memory shared though?

The other place I'd like to avoid holding up my mod_perl processes is in
waiting for file uploads to finish (which is a common situation as people
upload attachments for their emails). Is there a any way to do this...
perhaps by using some kind of 'gateway' server?

-- 
  Jeremy Howard
  [EMAIL PROTECTED]
  FastMail--Sign up at http://fastmail.fm



Re: CGI.pm: start_form defaults

2000-07-09 Thread Hasanuddin Tamir

 No wonder Alexei V. Barantsev on Jul 8 said that,

AVB] Playing with CGI I have found that real behaviour of start_form
AVB] without parameters does not correspond to documentation.
AVB] 
AVB] From the documentation:
AVB] 
AVB] The defaults are:
AVB] method: POST
AVB] action: this script
AVB] enctype: application/x-www-form-urlencoded
AVB] 
AVB] From the source code of startform:
AVB] 
AVB] $method = $method || 'POST';
AVB] $enctype = $enctype || URL_ENCODED;
AVB] $action = $action ? qq/ACTION="$action"/ : $method eq 'GET' ?
AVB]'ACTION="'.$self-script_name.'"' : '';

Yes, it's empty. And when it is, according to HTML spec,
the default ACTION will be "this script".  So the doc is
just fine.


san
-- 
trabasLabs * [EMAIL PROTECTED] * http://www.trabas.com
Zero Point * [EMAIL PROTECTED] * http://www.zp.f2s.com
--
We are all alone  --The X-Files




Re: Forking off lengthy processes

2000-07-09 Thread Robin Berjon

At 01:19 10/07/2000 +, Jeremy Howard wrote:
I've just read the Guide's advice on fork and system calls, but it
doesn't really seem to offer a resolution to the problems it raises.

I'm trying to set up an SMS gateway for my webmail users. The gateway
just uses LWP to contact a web-SMS provider and sends a POST request
(following some redirects in the process). This can be a lengthy process,
so rather than have my mod_perl process waiting, I'd like to pass on the
request to another process. Here are the potential solutions I can think
of and their problems:
* fork(): Memory hog, since it copies the entire Apache process (is this
right--does it share the memory for all the modules etc...?)
* system(): Slow--would have to start up a new Perl process
* Create a simple preforking server and have mod_perl just pass a request
to it through a socket: Seems like overkill.

It may only overkill if you have to write it in it's entirety just for that
:) There's plenty of example code and modules to build one such tool
easily. If you don't need all this to be done in real time you might want
to try a simple cron based system. Write your requests to a database, and
have them be sent every now and then.



-- robin b.
Suicidal twin kills sister by mistake! 




Using modules

2000-07-09 Thread Srinidhi Rao S




Hi all,
 I have a small 
problem. I have a package which is not situated in perl\lib folder. It has a 
different path. I have some problems in copying this to library folder. Can I 
use the package from the present position without copying to the library 
folder?? How do tell the perl compiler to search that folder also??
Thanx in advance
RegardsSrinidhi Rao 
S