Re: hostname fails under Apache::Registry, but not as CGI??

1999-12-13 Thread Doug MacEachern
try Apache->request->get_server_name instead of hostname() it's cheaper too, since Sys::Hostname::hostname forks, at least once per-process. not so bad if you call it in the parent though (in a PerlRequire script), then all children have the cached results On Wed, 3 Nov 1999, Nick Urbanik wrote:

Re: hostname fails under Apache::Registry, but not as CGI??

1999-11-03 Thread Stas Bekman
> When I run a CGI program as such, hostname works. When I run it under > Aapche::Registry, it fails. Can anyone understand why? Sorry, I am > new to all this. > > [error] Cannot get host name of local machine at > /home/httpd/dbi/frame_control.cgi line 13 > > use Sys::Hostname; > > my $ho

hostname fails under Apache::Registry, but not as CGI??

1999-11-03 Thread Nick Urbanik
Dear folks, When I run a CGI program as such, hostname works. When I run it under Aapche::Registry, it fails. Can anyone understand why? Sorry, I am new to all this. [error] Cannot get host name of local machine at /home/httpd/dbi/frame_control.cgi line 13 use Sys::Hostname; my $hostname