Re: Get Extension in Bytea Type - Mailing list pgsql-php

From Chris
Subject Re: Get Extension in Bytea Type
Date
Msg-id 465B716F.10506@gmail.com
Whole thread Raw
In response to Get Extension in Bytea Type  (Junior <sktjuniors@gmail.com>)
List 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/

pgsql-php by date:

Previous
From: Junior
Date:
Subject: Get Extension in Bytea Type
Next
From: 李彦 Ian Li
Date:
Subject: [newbie] How to do "batch insert"?