note 62208 rejected from function.strtotime by nlopess
| From: | nlopess@php.net | Date: | Wed, 22 Feb 2006 18:23:51 +0000 |
| Subject: | note 62208 rejected from function.strtotime by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-104242@lists.php.net to get a copy of this message | ||
Note Submitter: admin at sierraleoneans dot net
----
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.