no echo strftime
Posted by: Frens (---.cm-2.dynamic.ziggo.nl)
Date: February 11, 2013 02:13PM

hello

with this code there is nou output in Wamp (by my host its works fine) , someone nows wath is wrong?

<?php
$date = date("m.d.y"winking smiley;
$ts = strtotime($date);
$year = date('o', $ts);
$week = date('W', $ts);
?>


<?php $ts = strtotime($year.'W'.$week.'5');echo strftime("%A %e %B", $ts) ;?>

php ver 5.3.13 Wamp 2.2

Options: ReplyQuote
Re: no echo strftime
Posted by: guarienti (---.175.44.152.static.gvt.net.br)
Date: February 11, 2013 02:46PM

Hi,

'%e' modifier is not supported in Windows PHP versions: [www.php.net]
You can replace it with '%#d'.

Att.,
Bruno Guarienti



Edited 1 time(s). Last edit at 02/11/2013 02:46PM by guarienti.

Options: ReplyQuote
Re: no echo strftime
Posted by: Frens (---.cm-2.dynamic.ziggo.nl)
Date: February 11, 2013 03:38PM

Hi Bruno,


Thanks a lot ! it works fine.


Regards ,

Frens

Options: ReplyQuote


Sorry, only registered users may post in this forum.