Re: How to get error?

2008-01-15 Thread [EMAIL PROTECTED]
On Jan 14, 5:29 pm, [EMAIL PROTECTED] (Peter Scott) wrote:


 use CGI::Carp qw(fatalsToBrowser);

It helped me , thanks.
But i have got strainge error Insecure dependency in require while
running setuid at /path/to/the/script
What is this?


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: How to get error?

2008-01-15 Thread Tom Phoenix
On Jan 15, 2008 7:03 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 On Jan 14, 5:29pm, [EMAIL PROTECTED] (Peter Scott) wrote:

  use CGI::Carp qw(fatalsToBrowser);
 
 It helped me , thanks.

Be sure to remove it when you deploy your program, so as not to assist
everyone who tries to break your program.

 But i have got strainge error Insecure dependency in require while
 running setuid at /path/to/the/script
 What is this?

When perl gives you a message you don't understand, you'll find the
explanation in the perldiag manpage.

In this case, it's a sign that perl is trying to keep you out of
trouble. Perl can see that an attacker might be sneaking something
past you, the way you're doing things. In short, a key operation is
being given data that a user could have tampered with, and therefore
it may not be secure to do that operation. See the full story about
taint checking in the perlsec manpage.

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




How to get error?

2008-01-14 Thread [EMAIL PROTECTED]
Hello.
I have cgi script and sometimes it fails. I get Internal Server Error
in my browser.
When i run perl -c script.cgi  i get syntax ok.
It is runtime error. But how to know what is the error? How can i make
the error is shown in bworser window? Or where are error logs stored?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: How to get error?

2008-01-14 Thread Peter Scott
On Mon, 14 Jan 2008 02:48:08 -0800, [EMAIL PROTECTED] wrote:
 I have cgi script and sometimes it fails. I get Internal Server Error
 in my browser.
 When i run perl -c script.cgi  i get syntax ok.
 It is runtime error. But how to know what is the error? How can i make
 the error is shown in bworser window? 

use CGI::Carp qw(fatalsToBrowser);

-- 
Peter Scott
http://www.perlmedic.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: How to get error?

2008-01-14 Thread Ken Foskey

On Mon, 2008-01-14 at 02:48 -0800, [EMAIL PROTECTED] wrote:
 Hello.
 I have cgi script and sometimes it fails. I get Internal Server Error
 in my browser.
 When i run perl -c script.cgi  i get syntax ok.
 It is runtime error. But how to know what is the error? How can i make
 the error is shown in bworser window? Or where are error logs stored?

I find that this is caused by the failure to put out CGI headers
properly and Apache then says that it is not formed correctly.

Search your apache log and find the actual messages.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/