DE PETITES ANNONCES GRATUITES |
| PASSER UNE ANNONCE GRATUITEMENT |
| CONSULTEZ LES ANNONCES |
Postgres - any way to prevent it from needing a specific host to connect? Ok - I am builing a webserver. Fedora Core 9 running a LAPPstack setup.
I have it running - but all the old scripts (written by other people) connect to the database using pg_connect("dbname=???_logs port=5432 user=???")
But they dont specify a host=localhost.
If I add the localhost to the string, it works - but I dont want to have to do that for all the scripst (as there are hundreds of them) - so my question is how to set up PHP/Postgres so it defaults to localhost, as the old server obviously did.
Cheers,
I'm pretty sure the Postgres config file will let you specify the default host - MySQL does, if I remember right. If not, a php.ini setting for the postgres driver might do the same thing.
If all else fails, you could try changing 'localhost' to a different IP in /etc/hosts, if you feel like living dangerously.
PHP: PostgreSQL - Manual
PostgreSQL. Introduction; Installing/Configuring. Requirements; Installation; Runtime Configuration; Resource Types; Predefined Constants; Examples. PostgreSQL extension overview ...
PHP: PostgreSQL Functions - Manual
Notes. Note: Not all functions are supported by all builds. It depends on your libpq (The PostgreSQL C client library) version and how libpq is compiled.
MySQL PHP to PostgreSQL
PostgreSQL PHP Generator - Free Postgres PHP Generator by SQL Maestro ...
SQL Maestro Group vendors powerful database administration, development and management tools for MySQL, Oracle, SQL Server, DB2, SQL Anywhere, PostgreSQL, SQLite, Firebird and ...
PostgreSQL & PHP Tutorials
PostgreSQL PHP tutorials ... Group Concat is a useful mysql function, but how do we get the same results in PostgreSQL?
Re: [HACKERS] [BUGS] PostgreSQL / PHP Overrun Error
There is a problem in PHP-4.0.6. Please use PHP4.0.7 or 4.0.8 and the problem will be solved. This can be obtained from CVS -- Mike ----- Original Message ----- From ...
Re: [BUGS] PostgreSQL / PHP Overrun Error
Sorry: PHP 4.0.6 (with memory leak patch [download listed right below PHP-4.0.6.tar.gz download- It was a problem]) PostgreSQL 7.1.3 Apache 1.3.20 (with mod_ssl- but it ...
Use PostgreSQL and PHP on Windows [PHP & MySQL Tutorials]
Johan guides us through the installation of the PostgreSQL DBMS on Windows, and describes the minor changes required to an existing PHP installation to make your server side ...
PostgreSQL - Wikipedia, the free encyclopedia
Command Prompt, Inc. continues to support the PostgreSQL community actively through developer sponsorships and projects including PL/Perl, PL/php, and hosting of community projects ...
PHP 5 & PostgreSQL Bootcamp
PHP 5 & PostgreSQL Bootcamp. PHP 5 and PostgreSQL Bootcamp is five intensive days of hands-on programming designed for web application developers who need to master web design with ...
INDEX /TAG :
Vous pouvez également consulter le guide pratique postgresql qui vous proposera de nombreuses autres informations pratique concernant votre recherche surpostgresql