Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Mr. Shawn H. Corey a écrit : On Tue, 2006-20-06 at 11:49 +0200, sfantar wrote: Why are there differences between the output of the CGI mentioned below which displays the content of $ENV{HOME} et $ENV{PATH}? CGIs are forked off of the web server, which normally runs under a different user

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Owen Cook a écrit : On Tue, 20 Jun 2006, sfantar wrote: David Dorward a écrit : On Tue, Jun 20, 2006 at 10:25:33AM +0200, sfantar wrote: Why are there differences between the output of the CGI mentioned below which displays the content of $ENV{HOME} et $ENV{PATH}? The environment the

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Prabu a écrit : sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Prabu a écrit : sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
David Dorward a écrit : On Tue, Jun 20, 2006 at 10:25:33AM +0200, sfantar wrote: Why are there differences between the output of the CGI mentioned below which displays the content of $ENV{HOME} et $ENV{PATH}? The environment the webserver runs is different to the environment your shell runs

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to

What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in the

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : Here is the script which gave me the error mentioned above : [snip] Everything looks okay there. What's in test.tmpl? HTH, Charles K. Clarkson Here is what's inside the file test.tmpl Test Template My Home Di

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Jeff Peng a écrit : Hello, The first,I would suggest you take a look at apache's error_log,you could find something wrong with your scripts or config there. From: sfantar <[EMAIL PROTECTED]> To: beginners-cgi@perl.org, beginners@perl.org Subject: Problems with HTML::Template Da

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : I am starting using HTML::Template modules and I wrote a script with : the first example within the doc. : I am not able to see the results of my CGI from my browser. It : displayed error 500 Internal Server Error. Sounds like you are not

Problems with HTML::Template

2006-06-20 Thread sfantar
Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executable. In the @INC,

Problems with CGI and mod_perl

2006-06-06 Thread sfantar
Hello everyone I have started since today learning how to write cgi in Perl with this doc : http://users.easystreet.com/ovid/cgi_course/lessons/lesson_one.html I am running ubuntu on my pc and I installed the package mod_perl made by ubuntu a few days ago and I was able to run Perl scripts f