Lists: | pgsql-php |
---|
From: | Junior <sktjuniors(at)gmail(dot)com> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Get Extension in Bytea Type |
Date: | 2007-05-28 19:33:52 |
Message-ID: | 4822bcbf0705281233i48e3e58em854f87f63d642228@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-php |
Hi, I need get the extension in bytea type, my web system save in database
one file, the file can be many extensions, i need get de extension from this
file for the users can download this file..
Help Please!
Thanks!
From: | Chris <dmagick(at)gmail(dot)com> |
---|---|
To: | Junior <sktjuniors(at)gmail(dot)com> |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: Get Extension in Bytea Type |
Date: | 2007-05-29 00:18:55 |
Message-ID: | 465B716F.10506@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-php |
Junior wrote:
> Hi, I need get the extension in bytea type, my web system save in
> database one file, the file can be many extensions, i need get de
> extension from this file for the users can download this file..
If you're not saving the filename you'll have to resort to saving the
file & then using something like:
exec('file /path/to/file', $out);
print_r($out);
to work it out.
--
Postgresql & php tutorials
http://www.designmagick.com/