Re2: [PHP-DB] MySQL Insert

From: Date: Thu, 08 Jan 2004 01:42:21 +0000
Subject: Re2: [PHP-DB] MySQL Insert
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32320@lists.php.net to get a copy of this message
hi! just to add: use file() only if you run php 4.3.0 or higher. if this is not the case use this syntax (its binary safe): $fp = fopen($_FILES['myFile']['tmp_name'], 'r'); # on windows use 'rb' instead of 'r' $data = fread($fp, file_size($_FILES['myFile']['tmp_name'])); fclose($fp); instead of $data = join(etc); greets - ma # life would be easier if i knew the source code...

« previous php.db (#32320) next »