Re: Problem with uploading Files with PHP 4.1.2 on IIS

From: Date: Sun, 21 Apr 2002 00:16:15 +0000
Subject: Re: Problem with uploading Files with PHP 4.1.2 on IIS
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13212@lists.php.net to get a copy of this message
At 11:56 AM 4/20/02 -0300, Waldemar Brand Neto wrote:
Dear Myke I have this problem too. When I save the uploaded file im Mysql it save the path of the file and not the image itself. How cam I read the file and save into a BLOB field. Thanks. Waldemar
Try something like this: $the_file = $HTTP_POST_FILES['fileinputfieldname']['tmp_name']; $thebindata = addslashes(fread(fopen($the_file, "r"), filesize($the_file)));

« previous php.windows (#13212) next »