Re: To upload file from client to Appache server (WNNT)

2002-08-03 Thread Dave K

Bruce,
Connie's point is important. bruce2.pl shebang line (the first line in
the script) must match your perl install because Apache uses it to determine
what program to use to run the script. Also any references to files or
folders in that script must be available on your server. I suspect the
upload directory 'D:/cygwin/...' is one of the offending references. Most
importantly, read the Apache docs specific to running cgi scripts. Your
httpd.conf does not enable cgi execution.

Options ExecCGI

needs to be part of the  wrote in message
news:sd4ab245.062@/MH-10.128.0.128...
> Check out the errors I am getting when I run the bruce.html on my
> Appache
> (Apache/1.3.26 Server at 165.25.207.246 Port 80)
>
> my Perl have been install in dir c:/program files/perl/bin.
> When I view any Perl program via the web then I get the same errors.
>
> What am I doing wrong.
>
> Please help
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Sort of questions about CGI

2002-08-03 Thread Connie Chan

1. Can remote user hide their REMOTE_ADDR and HTTP_REFERER?

2. What types of REQEUST_METHOD will CGI / CGI.pm handles ? I 
think just get and post.

3. How many enctypes here ? What I know is 2. Is that refer to CGI/1.1 
or HTTP/1.1 or the browser?

4. When I pick up a form, would the line breaks by \r\n and \n are difference after 
the "pack" procedure ? So which side determine that ? Remote side or server side ?

5. Is that CONTENT_TYPE only appear when a form is encrypted by 
multipart/form-data ?

6. What is the standard or what for how the boundary --123456789 is 
formed ?

7. When is the time I know the length on CONTENT_LENGTH or the QUERY_STRING?
When the form is firstly activated my script (the header)? or When the whole content 
is 
totally received ?

8. When a form with files attached, how can I know what is the type of file ? by 
filename's
extension or what ?

9. Where can I find more sources about the protocal on HTTP and CGI ?

Thanks in any respond and / or pointing me to some referece page.

Rgds,
Connie


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




The size of a folder

2002-08-03 Thread Octavian Rasnita

Hi all,

Is there a Perl function, or a module that can find out the size of  a
directory with all its files from all subdirectories?
I know that I could use the system function to run a command line but I want
to avoid this.

Thank you.

Teddy Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: The size of a folder

2002-08-03 Thread Janek Schleicher

Octavian Rasnita wrote at Sat, 03 Aug 2002 15:43:46 +0200:

> Is there a Perl function, or a module that can find out the size of  a
> directory with all its files from all subdirectories?
> I know that I could use the system function to run a command line but I want
> to avoid this.

I don't know whether there's a module doing this job -
also I believe there should be one,
but you could also do it with File::Find.

use File::Find;

my $dirsize = 0;
find(sub {$dirsize += -s $_}, $directory);

print $dirsize;



Greetings,
Janek


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Help Needed: Debugging web applications in perl+cgi+php+mysql on apache+ssl

2002-08-03 Thread Saurabh

Hello,

I am not sure if this is the right mailing list to ask this question or not but I have 
exhausted all my resource (various search engines, including google, some newsgroups 
and various websites) and I could not find a convincing answer/solution to my 
question/problem.

Pls direct me to the appropriate mailing list if this is not the correct mailing list 
for this question.
So, here is the scenario:

Basically, I have to create a secure web site functional from most browsers that is 
written in perl+cgi+php+mysql(for various fcunctionalities  like accessing database 
etc). How do I debug a web application that uses Perl, CGI, PHP, HTML, Apache+ SSL? 

There are mainly two ways that I could found and atleast one of them is not very 
efficient and the second one I am not sure about.
(a)First solution is to use: 
use CGI::Carp qw(fatalsToBrowser); I am not very comfortable with this solution.
(b)The second solution is to use a perl debugger called ptkdb. I am not sure how much 
useful is this ptkdb in debugging a web appplication.

I have not used any of these solutions. It is a big application and would probably 
need lot of debugging.

Here are my questions to gurus:
(1) Am I correct that anyone of these approaches can be used to debug web application
(2) Which of these is a better approach to debug web application keeping in mind that 
it is a huge application and would need lot of debugging.
(3) Can anyone suggest me anything else which is better than the two approaches listed 
above.
(4) Can anyone tell me what are the pros and cons of using the two approaches.

I greatly appreciate all the help.

thx,
Saurabh