note 62208 added to function.strtotime

From: Date: Wed, 22 Feb 2006 14:04:20 +0000
Subject: note 62208 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-104221@lists.php.net to get a copy of this message
I am having some problems with the following date format and my website host tells me that the script was written for PHP4. The webserver that my site is on is running PHP5. Here is the code for the date: $publishdate = date('Y-m-d H:i:s', strtotime($item['pubdate'])); $publishdate_readable = date('d-m-Y, H:i', strtotime($item['pubdate'])); Here is the error I am getting: Warning: strtotime() [function.strtotime]: Called with an empty time parameter. script_name.php on line 88 Is it really a compatibility issue? Any help will be greatly appreciated. ---- Server IP: 64.71.164.2 Probable Submitter: 63.164.202.130 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62208 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62208&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62208&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104221) next »