[OSGeo-Discuss] Db connect

Kumaran Narayanaswamy kumaran.narayanaswamy at kcubeconsulting.com
Tue Mar 2 23:40:05 PST 2010


Dear Mr.Ravi Kumar,

Are your PHP pages getting processed?.Just create a simple page with the below code and run to see if you get the PHP Environment information details. If you dont get the information then your PHP is not configured well.


<?php
  phpinfo();

?>


Regards
Kumaran
-----Original Message-----
From: discuss-bounces at lists.osgeo.org [mailto:discuss-bounces at lists.osgeo.org] On Behalf Of Ravi
Sent: Wednesday, March 03, 2010 12:16 PM
To: OSGeo Discussions
Cc: postgis
Subject: Re: [OSGeo-Discuss] Db connect

Hi,
am trying to learn rendering maps using browser(shapefiles)

no error is given from the browser, but it just displays

$db_handle = pg_connect(”host = localhost port = 5432 dbname = postgis user = postgres password = GrassJump”); $query = “SELECT * FROM rjybound”; $result = pgexec($dbhandle, $query);

Ravi Kumar

--- On Wed, 3/3/10, Tyler Mitchell (OSGeo) <tmitchell at osgeo.org> wrote:

> From: Tyler Mitchell (OSGeo) <tmitchell at osgeo.org>
> Subject: Re: [OSGeo-Discuss] Db connect
> To: "OSGeo Discussions" <discuss at lists.osgeo.org>
> Date: Wednesday, 3 March, 2010, 8:56 AM
> Hi Ravi, what kind of error are you
> getting?
> 
> Tyler
> Ravi wrote:
> > Hi,
> > am using OSGeo4W bundle and the apache and php there
> in.
> > Apache installed OK showing as aservice and in the
> browser
> > http:\\localhost
> > issues the OSGeo4w welcome screen and phpthere on
> > 
> > with the following wish to connect to PGSQL 8.4 and
> postGIS there in
> > with the following. But it doesnt work. Where am I
> going wrong ?
> > 
> > $db_handle = pg_connect(”host = localhost port =
> 5432 dbname = postgis user = postgres password =
> GrassJump”); $query = “SELECT * FROM rjybound”;
> $result = pgexec($dbhandle, $query);
> > 
> > Ravi Kumar
> > 
> > 
> >       Your Mail works best
> with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/
> > 
> > _______________________________________________
> > Discuss mailing list
> > Discuss at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/discuss
> 
> _______________________________________________
> Discuss mailing list
> Discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss
> 


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

_______________________________________________
Discuss mailing list
Discuss at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/discuss




More information about the Discuss mailing list