pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DeJuan Jackson <djackson@speedfc.com>
To: pgsql-php@postgresql.org
Subject: PHP and COPY
Date: Fri, 15 Aug 2003 13:15:57 -0500
Message-ID: <3F3D235D.6090005@speedfc.com> (raw)

Does anyone know how to execute a COPY from PHP?
I keep getting parse errors on all the data.

PHP 4.3.2
PostgreSQL 7.3.4

example:

CREATE table tmp(data text);

COPY tmp FROM STDIN;
test1
test2
test3
\.





view thread (5+ messages)  latest in thread

Message-ID: <3F3D235D.6090005@speedfc.com>
Permalink:  ../3F3D235D.6090005@speedfc.com/
Also on:    postgresql.org/message-id/3F3D235D.6090005@speedfc.com

 · 

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: djackson@speedfc.com
  Subject: Re: PHP and COPY
  In-Reply-To: <3F3D235D.6090005@speedfc.com>
  References: <3F3D235D.6090005@speedfc.com>

* 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