Apache::ASP vs CGI

2002-01-21 Thread Howell, Steven
Hi guys, I currently have Apache installed on a Unix box, and it is already running perl CGI scripts quite happily. I am keen to use Apache::ASP but am unsure as to what benefits it has over CGI programming. Can anyone argue the case for me? Thanks for your help! Steve Howell ---

Re: Apache::ASP vs CGI

2002-01-21 Thread Sven Koehler
Howell, Steven wrote: > Hi guys, > > I currently have Apache installed on a Unix box, and it is already running > perl CGI scripts quite happily. > > I am keen to use Apache::ASP but am unsure as to what benefits it has over > CGI programming. Can anyone argue the case for me? sure. ASP is a

RE: Apache::ASP vs CGI

2002-01-21 Thread John D. Leonard II
Steven: > I am keen to use Apache::ASP but am unsure as to what > benefits it has over CGI programming. Can anyone argue the > case for me? In my own mind, it greatly depends on the skill level of your CGI programming. Since Apache::ASP is built primarily on mod_perl and other existing Apache

Scoping question

2002-01-21 Thread John D. Leonard II
All: --> What is the "suggested" way to share variables across callback functions. My question relates to getting traversed values out of the File::Find routine. Below is my code. It works, although I went through many incarnations to get it to work properly. Originally, I tried using "my $di

Re: File exists on include path

2002-01-21 Thread Joshua Chamas
"John D. Leonard II" wrote: > > All: > > Any code for testing to see if a file exists along the Includes (and > global) path? > > $Response->Include( $filename) and $Response->TrapInclude( $filename ) > automatically scan the path, but return an error if the file is not > found. I want to tr

File uploads

2002-01-21 Thread Tim Pushor
Title: Message list,   I have an application where I would like to time how long it takes to upload a file via HTTP. What I was wondering is where (when) exactly is the file upload taking place? When using tempfiles, when does apache-asp (or CGI.pm) actually transfer the file from the user?

Re: ASP Help

2002-01-21 Thread Joshua Chamas
"Jeremy D. May" wrote: > > 1.Undefined subroutine > &Apache::ASP::Compiles::_tmp_global_asaxfad629c90f507e68c4f538d187d2b9fd::epochToReal > called at default.asp line 89. , >/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 1560 > > 85: '.($lists{$addres

Re: I have an Application that I need to port from IIS/ASP to Apache/Apache:ASP

2002-01-21 Thread Joshua Chamas
Marcos Nobre wrote: > > Ok. Let me start again. > > First of all, I need to create a "site" that is pointed by a browser > (naturaly) like : > http://localhost/mysite > ... > > Options -Indexes FollowSymLinks > #Options FollowSymLinks > #AllowOverride None > AllowOverride All >

RE: File uploads

2002-01-21 Thread John D. Leonard II
Title: Message Tim:   I believe that the file upload occurs BEFORE any Apache::ASP processing takes place.  Here is a description of the entire transaction.   1) The server presents the form to the browser.   2) The user presses the "select file" button to pick their local file.   3) The

RE: File uploads

2002-01-21 Thread Tim Pushor
Title: Message That's what I was afraid of.   So then, whats to stop someone from uploading files at *any* of my ASP documents? webserver permission? -Original Message-From: John D. Leonard II [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 1:38 PMTo: 'Tim Pushor

RE: File uploads

2002-01-21 Thread John D. Leonard II
Title: Message Tim:   It sounds like you are concerned with someone playing with LWP and forcing a "POST" response to a file on your server.  Is this your concern?   This kind of attack can occur on any web page, not just Apache::ASP files.  There is probably some Apache settings to allow f

Re: Scoping question

2002-01-21 Thread Joshua Chamas
"John D. Leonard II" wrote: > > All: > > --> What is the "suggested" way to share variables across callback > functions. My question relates to getting traversed values out of the > File::Find routine. > Because of "my closure" problems with caching script compilations & mod_perl, one needs t

RE: File uploads

2002-01-21 Thread Tim Pushor
Title: Message No, that is not my real concern, but more a realization that I don't have any code that runs prior to *something* downloading the file for me.   What I really want is to be able to tell download time without using any gross javascript hacks :) -Original Message-F

Re: File uploads

2002-01-21 Thread Joshua Chamas
> Tim Pushor wrote: > > list, > > I have an application where I would like to time how long it takes to upload a file >via HTTP. What I was wondering is where (when) exactly is the > file upload taking place? When using tempfiles, when does apache-asp (or CGI.pm) >actually transfer the file fr

Re: File uploads

2002-01-21 Thread Joshua Chamas
> This kind of attack can occur on any web page, not just Apache::ASP files. There is >probably some Apache settings > to allow file uploads only to specific directories. Joshua? To limit the file upload size that Apache::ASP will handle, use PerlSetVar FileUploadMax 5 To limit this at