note 27265 added to ref.pgsql

From: Date: Fri, 29 Nov 2002 15:50:00 +0000
Subject: note 27265 added to ref.pgsql
Groups: php.notes 
Request: Send a blank email to php-notes+get-40121@lists.php.net to get a copy of this message
I just wanted to add to my previous post I've got the system up and running. Environment: Windows XP, Apache 1.3.23, Php 4.3 RC2, PostGreSQL beta4 native windows build Installation was fairly easy: 1. read the readme.txt 2. edit the setenv.bat as described in readme 3. run 'initdb' all execs are in /bin help is accessed like <command> --help 4. Start the psql deamon - you may want to create a batch file like 'D:\postgres_beta4\bin\postmaster -h localhost -D D:/postgres_beta4/data' --deamon should be up and running now-- You can login into a shell from a console like 'psql -h localhost -d <username>' You must load the postgresql extension by editing the php.ini and restarting apache in order to access psql with php. And one final not: when running $dbconn = pg_connect ("host=localhost port=5432 dbname=$dbname user=$user"); remember that $user and or $dbname is CASESENSITIVE. Oh yeah, I created the data dir manually - don't know whether that was necessary Grtz Vargo -- http://www.php.net/manual/en/ref.pgsql.php http://master.php.net/manage/user-notes.php?action=edit+27265 http://master.php.net/manage/user-notes.php?action=delete+27265 http://master.php.net/manage/user-notes.php?action=reject+27265

« previous php.notes (#40121) next »