Re: pgsql support not working...
| From: | Mark Christenson | Date: | Sun, 10 Dec 2000 21:03:24 +0000 |
| Subject: | Re: pgsql support not working... | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1121@lists.php.net to get a copy of this message | ||
thanks for the input, but i'm still getting the same error, even after creating the file directly on the linux machine using vi. i was hoping that would do it, but i get the same exact parse error.
any other suggestions?
mark
At 4:23 PM +0000 12/10/00, shivkumar jagannath wrote:
hi, from the error message, it appears that theres a syntax error in your pg_Connect statement due to which the script dies. if pgsql support had not been configured, then u wud have got the message "Fatal error: call to unsupported function pg_Connect.... etc". if you have split the pg_Connect into 2 lines as is apparent then i wud advose u to keep it all on one line because, linebreaks are represneted differently in dos & unix and why dont u comment out the phpinfo() thing as well. might help you to get closer to the prob. regards ------------- Original Message -------------- Mark Christenson <mark.christenson@alumni.stanford.org> wrote: To:php-db@lists.php.net, php-install@lists.php.net From:Mark Christenson <mark.christenson@alumni.stanford.org> Date:Sat, 9 Dec 2000 13:24:09 -0800 Subject: [PHP-INST] pgsql support not working... I'm running 4.0.3pl1 with PostgreSQL 6.5.2 on a LinuxPPC machine. I ran ./configure as follows: ./configure --with-apxs --with-pgsql=/var/lib/pgsql Then I did: make and finally: make install I edited httpd.conf to include the following line: LoadModule php4_module modules/libphp4.so I restarted apache. I have a web page called phptest.php as follows: <HTML> <BODY> <? phpinfo(); $dbconn = pg_Connect("host=cx510552-a user=postgres port=5432 dbname=test"); if (!$dbconn) { echo "Connection failed"; exit; } ?> </BODY> </HTML> The output of this page in a browser ends with the following: Working Directory: /home/mark/public_html Include Path: . GDBM support enabled Apache module support enabled GD support enabled SAFE MODE Enabled! phptest.php: parse error on line 6 $dbconn = pg_Connect("host=cx510552-a user=postgres port=5432 dbname=test"); FWIW, I had (have?) PHP3 installed on the machine as well, but I've commented out the references to php3 modules in the httpd.conf file. Any ideas what's wrong? It seems as though the pgsql support isn't configured in... Thanks, Mark -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com Participate in crazy auctions at http://auctions.rediff.com/auctions/