A confused Network Admin

William Bronsema wbronsema at DMSOLUTIONS.CA
Wed Mar 2 08:50:46 EST 2005


Also note that the extension_loaded check is not the extension_name (i.e.
php_mapscript_44) rather it is the module name itself. In this case it is
"mapscript".  Your code should be:



if(!extension_loaded('mapscript'))



HTH,

Bill



________________________________________________
William A. Bronsema, C.E.T.
Applications and Software Development,
DM Solutions Group Inc.

  _____

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Jeff Portwine
Sent: March 2, 2005 8:19 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin



Make sure that you have the <?PHP  line in front of everything and that the
script is ended with ?>.



I think in the original example he just had <?  which should be ok, but I
like to use <?PHP myself.  It looks like your script omitted the  '<', so it
wasn't being recognized as a php script and was just reading the script as
though it were html and outputting the text to your browser.



Hope this helps,

Jeff





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050302/87902031/attachment.html


More information about the mapserver-users mailing list