RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
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 printing the correct headers. Show

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 pri

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,

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
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 -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. --

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 Date: Tue, 20 Ju

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 Directory is

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
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 script. HTH, Charles K. Clarkson -- Mobile

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 script. HTH,

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 David Dorward
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. -- David Dorward

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: 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 to

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 to

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 test.tmpl in

Re: Problems with HTML::Template

2006-06-20 Thread Prabu
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 to make it executab

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 Owen Cook
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 webs

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 webse

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 Mr. Shawn H. Corey
On Tue, 2006-20-06 at 13:58 +0200, sfantar wrote: > "CGIs are forked off of the web server, which normally runs under a > "different user." > > I understand the fact that's the CGIs are run by a different user. > Is this user the same as the one who launched Apache? > Maybe, it depends on the co