You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by ross scanlon <we...@theinternethost.com.au> on 2001/11/12 10:48:16 UTC

Problem with Apache::ASP and HTTP::Date::time2iso()

Hi all,

Am having a problem with part of Apache::ASP and was wondering if anyone can helpout.

The set up is:

Redhat Linux 7.1
Kernel 2.4.2-2
Apache 1.3.19
mod_perl 1.26
mod_ssl 2.8.3
openssl 0.9.6b
php 4.0.6

HTTP::Date 1.43

Everything works fine except for the time and date functions.

The error reported is:

Undefined subroutine &HTTP::Date::time2iso called at ...

You can see the full output at

http://test.theinternethost.com.au/site/eg

All other aspects fo Apache::ASP work fine when the variable and subroutine are commented out.
See

http://test.theinternethost.com.au/asptest/eg

The cpan module reports HTTP::Date as upto date and we have reinstalled it to make sure.
The HTTP modules are at /usr/local/lib/perl5/site_perl/5.6.1/HTTP and the Date.pm module is definitely in the directory.

Any TIA

Regards
Ross
webmaster@theinternethost.com.au
http://www.theinternethost.com.au



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Problem with Apache::ASP and HTTP::Date::time2iso()

Posted by Joshua Chamas <jo...@chamas.com>.
"John D. Leonard II" wrote:
> 
> I frequently use the HTTP::Date functions "time2str" and "str2time."  Do you
> have other, lower-overhead suggestions?
> 

Well, its undocumented, and will remain so, but I just moved
the HTTP::Date module into Apache::ASP as Apache::ASP::Date,
so if you want to use it there you may.  I don't think HTTP::Date
is high in overhead, and just wanted to make the installation
process easier on people when first installing Apache::ASP.

If you did something like:

# global.asa
*time2str = *Apache::ASP::Date::time2str;

Then you could just reference time2str() in your scripts, and if 
Apache::ASP::Date disappears just point it somewhere else.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Problem with Apache::ASP and HTTP::Date::time2iso()

Posted by "John D. Leonard II" <jo...@ce.gatech.edu>.
I frequently use the HTTP::Date functions "time2str" and "str2time."  Do you
have other, lower-overhead suggestions?

JL

> -----Original Message-----
> From: Joshua Chamas [mailto:joshua@chamas.com]
> Sent: Monday, November 12, 2001 2:35 PM
> To: ross scanlon
> Cc: asp@perl.apache.org
> Subject: Re: Problem with Apache::ASP and HTTP::Date::time2iso()
>
>
> ross scanlon wrote:
> >
> > Hi all,
> >
> > Am having a problem with part of Apache::ASP and was wondering
> if anyone can helpout.
> >
> > Undefined subroutine &HTTP::Date::time2iso called at ...
> >
> > You can see the full output at
> >
> > http://test.theinternethost.com.au/site/eg
> >
>
> Did you just upgrade Apache::ASP ?  As of 2.27, Apache::ASP no longer
> uses HTTP::Date, but the examples from an old install still would.
> So for there to not be an error when using HTTP::Date functions, now
> one must add something like:
>
>   PerlModule HTTP::Date
>
> to the httpd.conf/.htaccess file.  But I believe I took out all
> references to HTTP::Date out of the examples that ship with 2.27,
> so maybe these are old examples, but you upgraded to the latest
> Apache::ASP?
>
> I removed the dependency of Apache::ASP on HTTP::Date because
> HTTP::Date requires the installation of the perl libwww libraries
> which are quite huge & unnecessary.
>
> -- Josh
> _________________________________________________________________
> Joshua Chamas                           Chamas Enterprises Inc.
> NodeWorks Founder                       Huntington Beach, CA  USA
> http://www.nodeworks.com                1-714-625-4051
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Problem with Apache::ASP and HTTP::Date::time2iso()

Posted by ross scanlon <we...@theinternethost.com.au>.
Hi Josh,

Just added the Perlmodule line to httpd.conf and fixed the problem.
The server has libwww installed so no problem using it.

Thanks for the help.


Regards
Ross
webmaster@theinternethost.com.au
http://www.theinternethost.com.au



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Problem with Apache::ASP and HTTP::Date::time2iso()

Posted by Joshua Chamas <jo...@chamas.com>.
ross scanlon wrote:
> 
> Hi all,
> 
> Am having a problem with part of Apache::ASP and was wondering if anyone can helpout.
> 
> Undefined subroutine &HTTP::Date::time2iso called at ...
> 
> You can see the full output at
> 
> http://test.theinternethost.com.au/site/eg
> 

Did you just upgrade Apache::ASP ?  As of 2.27, Apache::ASP no longer
uses HTTP::Date, but the examples from an old install still would.
So for there to not be an error when using HTTP::Date functions, now
one must add something like:

  PerlModule HTTP::Date

to the httpd.conf/.htaccess file.  But I believe I took out all 
references to HTTP::Date out of the examples that ship with 2.27, 
so maybe these are old examples, but you upgraded to the latest 
Apache::ASP?

I removed the dependency of Apache::ASP on HTTP::Date because
HTTP::Date requires the installation of the perl libwww libraries
which are quite huge & unnecessary.

-- Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org