Re: [PHP] Documentation

2010-10-27 Thread Teto
On Wed, Oct 27, 2010 at 2:20 PM, Nicholas Kell wrote: > > On Oct 27, 2010, at 4:09 AM, Tommy Pham wrote: > > >> -Original Message- > >> From: Jordan Jovanov [mailto:jovanovj...@gmail.com] > >> Sent: Wednesday, October 27, 2010 1:53 AM > >> To: php-general@lists.php.net > >> Subject: [PHP]

[PHP] Error handler script

2010-10-20 Thread Teto
Hi, I've been wondering if there was any php project focusing on providing a neat php error handler ? Up to now, I've been coding mine but I've seen videos on the web where a guy was using a really impressive php error_handler. Of course I could code it but if there was something generic I could u

[PHP] Casting from parent class to child

2010-10-06 Thread Teto
Hi, I'm trying to extends the base class DateTime. parent::createFromFormat("H.i d.m.Y", $string); returns a DateTime and I want to convert it into a DateTimePlus (my own extended class). What's the best way to do this plz ? Some code: class DateTimePlus extends DateTime { static functio