A confused Network Admin
Paul Spencer
pspencer at DMSOLUTIONS.CA
Wed Mar 2 06:15:26 PST 2005
slight clarification, the php module name is case sensitive and for
mapscript it is actually "MapScript".
For the record, my test script for testing MapScript extension is a
little simpler :)
<?php
if (!extension_loaded('MapScript'))
dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX);
phpinfo();
?>
Also, for most purposes, it is more convenient to make a copy of
php_mapscript_44.dll and name it php_mapscript.dll, then your scripts
can all reference php_mapscript.dll as the most recent version. When
4.6 comes out, you can test your apps then upgrade everything by making
php_mapscript.dll a copy of php_mapscript_46.dll
Cheers
Paul
William Bronsema wrote:
> 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
>
>
>
>
>
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the MapServer-users
mailing list