Current time: 05-20-2024, 11:25 AM Hello There, Guest! (LoginRegister)


Post Reply 
Fehler bei Centos - perl ispcp-setup
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #11
RE: Fehler bei Centos - perl ispcp-setup
Scheint, als ob da noch PHP 5.1 (oder zumindest < 5.2) läuft.

siehe http://ch2.php.net/manual/de/class.datetime.php


das könnte sonst in diese dateTime.class.php:
Code:
<?php
if (!class_exists('DateTime')) {
class DateTime {
    public $date;
    
    public function __construct($date) {
        $this->date = strtotime($date);
    }
    
    public function setTimeZone($timezone) {
        return;
    }
    
    private function __getDate() {
        return date(DATE_ATOM, $this->date);    
    }
    
    public function modify($multiplier) {
        $this->date = strtotime($this->__getDate() . ' ' . $multiplier);
    }
    
    public function format($format) {
        return date($format, $this->date);
    }
}
}
?>
02-01-2010 03:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Fehler bei Centos - perl ispcp-setup - joximu - 02-01-2010 03:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)