Re: [ANNOUNCEMENT] Contact_Vcard_Parse-1.30 (stable) Released.

From: Date: Wed, 18 Feb 2004 22:18:16 +0000
Subject: Re: [ANNOUNCEMENT] Contact_Vcard_Parse-1.30 (stable) Released.
References: 1  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-25700@lists.php.net to get a copy of this message
* Updated fromFile() to use fileGetContents() method
the better approach would have been to do something like this: if(!function_exists("file_get_contents")) {
    function file_get_contents($filename, $use_include_path = 0)
    {
        $data = ''; // just to be safe. Dunno, if this is really needed
        $file = @fopen($filename, 'rb', $use_include_path);
        if($file)
        {
            while (!feof($file)) $data .= fread($file, 1024);
            fclose($file);
        }
        return $data;
    }
} regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.dev (#25700) next »