Re: [GENERAL] 08P01: unexpected EOF on client connection

2009-05-02 Thread Jasen Betts
On 2009-05-01, Tomas Vondra wrote: > Hi, > > I've run into some strange troubles with a quite simple web application > that stores data in a PostgreSQL database. It is a simple image gallery, > displaying multiple thumbnails (stored in a bytea column) on a single > page generated by PHP. The pr

Re: [GENERAL] 08P01: unexpected EOF on client connection

2009-05-01 Thread Tomas Vondra
Hi, Tomas Vondra wrote: $conn = pg_connect(...); $res = pg_query("SELECT mime, thumbnail_data FROM images WHERE filename = "); $row = pg_fetch_assoc($row); header('Content-Type: ' . $row['mime']); echo pg_unescape_bytea($row['thumbnail_data']); PHP? Try running your script in a PHP debu

Re: [GENERAL] 08P01: unexpected EOF on client connection

2009-05-01 Thread Craig Ringer
Tomas Vondra wrote: > $conn = pg_connect(...); > $res = pg_query("SELECT mime, thumbnail_data FROM images WHERE filename > = "); > $row = pg_fetch_assoc($row); > header('Content-Type: ' . $row['mime']); > echo pg_unescape_bytea($row['thumbnail_data']); PHP? Try running your script in a PHP d

[GENERAL] 08P01: unexpected EOF on client connection

2009-04-30 Thread Tomas Vondra
Hi, I've run into some strange troubles with a quite simple web application that stores data in a PostgreSQL database. It is a simple image gallery, displaying multiple thumbnails (stored in a bytea column) on a single page generated by PHP. The problem is some of the images are not displayed.