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

Bill Thoen bthoen at GISNET.COM
Mon Jul 16 12:34:19 EDT 2007


Ooh, perfect! Just the level of difficulty I was hoping for -- dead easy!

Kyle Wilcox wrote:
> $  sudo yum install php-pgsql
>
>
> Bill Thoen wrote:
>   
>> 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,
>>
>>     
>
>   



More information about the mapserver-users mailing list