I have two machines. One for web server and the other for database server. Postgresql is installed in the database server machine.I have installed it. Now PHP needs to be installed in the web server machine. I am facing problem during installation of php as it needs the path to be mentiond where I have installed postgresql at the steps of configuration. As I have installed postgresql in the other machine, so I cant been able to give that path. I need solution of this problem. Otherwise I have to install postgresql in the web server too only for the installartion of php.
You dont need to install the server locally; you only need to be able to use psql modules within PHP.... It using debian/ubuntu then something like "apt-get install php5-pgsql" should be fine. If your using another variant, consult the documentation.