[Mapserver-users] Compiling php_mapscript as build-in module?

Merrett, Mike mike.merrett at city.whitehorse.yk.ca
Thu Jun 3 11:53:51 EDT 2004


you can include the php_maspscript.so in the php.ini (with the other
extensions)  
I do it so I dont have to remember to invoke it at every page.

Mike Merrett

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Homme
Zwaagstra
Sent: Thursday, June 03, 2004 4:45 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Compiling php_mapscript as build-in module?


Hi,

I'm wondering if there's any way to compile php mapscript as a
built-in module rather than the current external module which needs to
be loaded with the dl() function.

The reason I ask is that we're looking to optimise our mapscript
applications. We have a server with a dedicated mapscript php cgi
binary and it would be beneficial not to have to load the
php_mapscript.so at every page invocation.

I've done some profiling using nusphere's PhpED and the result seems
to be that the function dl('php_mapscript.so') takes on average around
0.05 seconds to load (on slower servers this is obviously longer). Not
much, I know, but every little helps and in simple applications this
can be as much as half the script execution time.

Thoughts?

Homme Zwaagstra
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list