[fw-general] Zend-AMF breaks php date(..) function

2009-10-01 Thread MSFXX

I would like to create a date variable like this:

$thedate = date(d-m);

outputting something like 01-10

This works fine within my PHP class however when I use it within the
ZendFramework it breaks :(

There is nothing wrong with the other code within the class because if I
hardcode the date to:

$thedate = 01-10;

then it all works fine when using the Zend Framework so the call to
date(d-m) is breaking my class... anyone know why? :(
-- 
View this message in context: 
http://www.nabble.com/Zend-AMF-breaks-php-date%28..%29-function-tp25696851p25696851.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend-AMF breaks php date(..) function

2009-10-01 Thread Alan Wagstaff
What error messages do you get when you use date()?

2009/10/1 MSFXX m...@msfx.co.uk


 I would like to create a date variable like this:

 $thedate = date(d-m);

 outputting something like 01-10

 This works fine within my PHP class however when I use it within the
 ZendFramework it breaks :(

 There is nothing wrong with the other code within the class because if I
 hardcode the date to:

 $thedate = 01-10;

 then it all works fine when using the Zend Framework so the call to
 date(d-m) is breaking my class... anyone know why? :(
 --
 View this message in context:
 http://www.nabble.com/Zend-AMF-breaks-php-date%28..%29-function-tp25696851p25696851.html
 Sent from the Zend Framework mailing list archive at Nabble.com.