Re: PHP5 Help

From: Alexander Johannesen <alexander.johannesen_at_nyob>
Date: Tue, 1 Jul 2008 13:58:31 +0200
To: CODE4LIB_at_LISTSERV.ND.EDU
On Tue, Jul 1, 2008 at 13:42, Nicole Engard <nicole.engard_at_liblime.com> wrote:
> I am missing something right in front of my eyes.  I'm rusty on my
> PHP, I'm wondering if someone can help me with this error:
>
> Warning: gmmktime() expects parameter 3 to be long, string given in
> /public_html/magpierss-0.72/rss_utils.inc on line 35

Well, it's a bit puzzling in the sense that the parameters are all
ints, but hey. :) Try casting the values ;
   gmmktime( (int) $hours, (int) $minutes, (int) $seconds, (int)
$month, (int) $day, (int) $year ) ;

or try the same with (long).


Alex
-- 
---------------------------------------------------------------------------
 Project Wrangler, SOA, Information Alchemist, UX, RESTafarian, Topic Maps
------------------------------------------ http://shelter.nu/blog/ --------
Received on Tue Jul 01 2008 - 06:33:04 EDT