A confused Network Admin

Lisi, Christine lisi at MYDELRAYBEACH.COM
Wed Mar 2 09:19:53 EST 2005


Thank you, Paul.  I changed the script to your version, which returns a
lot of good data but I'm getting this error:

Warning: dl() [function.dl]: Unable to load dynamic library
'C:\PHP\php_mapscript_44.dll' - The specified module could not be found.
in c:\Inetpub\wwwroot\testmapscript.php on line 3

Christine Lisi
Application Specialist

Management Information Systems * City of Delray Beach * 100 NW First
Avenue, Delray Beach, FL 33444

Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Paul Spencer
Sent: Wednesday, March 02, 2005 9:15 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin

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