John Iliffe wrote: > > <?php echo file_exists("/tmp/.s.PGSQL.5432"); ?> > > > Basically, nothing. > > If I include it in an Apache script exactly as suggested, then the script > puts out a blank screen, no error messages. So from the point of view of the Apache process, that file does not exist. That's consistent with the error you reported when trying to connect through the Unix domain socket: Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? If apache is chrooted, or secured by other means with the similar result that it cannot access the full filesystem, that's expected. In this case, connecting to localhost with TCP/IP rather than a Unix domain socket looks like the simpler solution. Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general