Re: Problem with uploading Files with PHP 4.1.2 on IIS
| From: | Waldemar Brand Neto | Date: | Mon, 22 Apr 2002 20:17:03 +0000 |
| Subject: | Re: Problem with uploading Files with PHP 4.1.2 on IIS | ||
| References: | 1 2 3 4 5 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13234@lists.php.net to get a copy of this message | ||
Thank you very much your tips will help me a lot.
[]´s Waldemar
----- Original Message -----
From: "Mike Flynn" <mike@mikeflynn.net>
To: "Waldemar Brand Neto" <wbn@softall.com.br>
Sent: Monday, April 22, 2002 5:10 PM
Subject: Re: [PHP-WIN] Problem with uploading Files with PHP 4.1.2 on IIS
> There are lot's of tutorials on this process on the web, so you don't have
> to ask questions at each step of the process :). Check out zend.com,
> phpbuilder.com, devshed.com, etc, or do a search on the web for "php mysql
> file uploads blob" or something similar.
>
> As for your question, you will basically need to have a script that
> retrieves the blob data from the database using a SELECT statement. You
> will then need to use the function stripslashes() to remove the slashes
> from the binary data that we added using addslashes when we inserted the
> data into the database. So do something like $bindata =
> stripslashes($bindata);
> Then you need to return some MIME headers to let the user's browser know
> that a file is coming, what kind of file, the filename, filesize, whether
> it should be displayed or downloaded, etc. You can find more info on that
> in sample scripts. Then you just echo out the binary data.
>
> If you need more help just ask.
>
> At 02:28 PM 4/22/02 -0300, you wrote:
> >Thank you Mike once more you are correct. One more thing. Now the file is
> >saved in a Blob field at the database.
> >But when I show the blob field the image doesn´t appear. Just a
collection
> >of characaters. I have to save the Blob field in a file. How can I do
that?
> >Thank you very much.
>