pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pawel Bernat <asm@vlo.olsztyn.pl>
To: pgsql-php@postgresql.org
Subject: Re: FW: How to store binaries and ASCII files in DB
Date: Wed, 15 Jun 2005 15:00:22 +0200
Message-ID: <20050615150022.A16107@vlo> (raw)
In-Reply-To: <09766A6E64A068419B362367800D50C0B58C17@moritz.faps.uni-erlangen.de>
References: <09766A6E64A068419B362367800D50C0B58C17@moritz.faps.uni-erlangen.de>

On Wed, Jun 15, 2005 at 12:42:28PM +0200, Weber Matthias wrote:
> is their any php code example on how to store files (binary and ASCII) into a postgres db?
http://www.php.net/manual/en/function.file-get-contents.php
http://www.php.net/manual/en/function.pg-escape-bytea.php
http://www.php.net/manual/en/function.pg-escape-string.php
http://www.php.net/manual/en/function.pg-query.php


p.
-- 
Paweł Bernat; uselessness' lover;
select'<asm'||chr(64)||'asm'||'.'||'flynet'||chr(46)||'pl>'as email;
Slowly and surely the unix crept up on the Nintendo user ...



view thread (3+ messages)

Message-ID: <20050615150022.A16107@vlo>
Permalink:  ../20050615150022.A16107@vlo/
Also on:    postgresql.org/message-id/20050615150022.A16107@vlo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: asm@vlo.olsztyn.pl
  Subject: Re: FW: How to store binaries and ASCII files in DB
  In-Reply-To: <20050615150022.A16107@vlo>
  References: <09766A6E64A068419B362367800D50C0B58C17@moritz.faps.uni-erlangen.de> <20050615150022.A16107@vlo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox