php-windows Digest 21 Apr 2002 13:56:47 -0000 Issue 1104

Topics (messages 13212 through 13213):

Re: Problem with uploading Files with PHP 4.1.2 on IIS
        13212 by: Mike Flynn

mail atachment
        13213 by: Camelia Moldovan

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin 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)));

--- End Message ---
--- Begin Message ---

Hi! How can I attach a file to a mail using PHP ?

I tried to use some existing classes but I received lots of errors.

Thanks.

 



---------------------------------
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
--- End Message ---

Reply via email to