[PHP-DB] PEAR - My hosting company killed it

2005-05-13 Thread Dianne Mead
Hi, I know this is the probably the wrong list for this question, but I'm a bit desperate as my hosting company has disabled PEAR on the server, and I was using it extensively on more than one website... suddenly my weekend looks like a coding nightmare. The hosting service reports a security iss

Re: [PHP-DB] timestamp

2005-01-30 Thread Dianne Mead
what about something like this? $strdate = "Fri Jan 28 19:53:09 2005"; // place your date string here $newstr = substr_replace($strdate, '', 11, -5); // removes the time from your date string, bringing it inline with format required by strtotime() $tmstmp = strtotime($newstr); $date = date("Y-m