Using PHP Shared Object Library with PHP/Mapscript, MapServer and PostGIS

Bill Thoen bthoen at GISNET.COM
Mon Jul 16 07:50:14 PDT 2007


I would like to try out PHP/Mapscript, but the data source for my 
MapServer includes PostGIS files, and the installed version of PHP was 
not compiled using the --with-pgsql switch. Rather than go through the 
hassle of recompiling PHP, I noticed that you can use the dl() function 
in PHP to load the necessary library. Specifically, I need the database 
access functions pg_connect() and friends, and I'm using a Fedora Core 5 
box.

My question is, where would I find the correct shared object library to 
use with dl() or is this not the right approach?

TIA,

-- 
- Bill Thoen
  GISnet - www.gisnet.com
  303-786-9961
 



More information about the MapServer-users mailing list