A confused Network Admin

Paul Spencer pspencer at DMSOLUTIONS.CA
Wed Mar 2 10:16:05 EST 2005


this is actually a lot more useful.  At this point, it tells you exactly
where it is trying to load the dll from and that loading it has failed.
  Failure happens for either of two reasons:

1. the dll is not in this path.

2. the dll cannot find some dependency

1. is easy to confirm, which leaves 2.

To resolve 2., get the excellent utility depends.exe from
www.dependencywalker.com and open php_mapscript_44.dll using it.  This
utility will tell you exactly which dlls are missing.  Unfortunately, it
is not as simple as placing these dlls in the same directory as
php_mapscript_44.dll.  They need to be somewhere in your system path.
Once you've got all the dlls identified and placed somewhere in your
system path, it should work.

Cheers,

Paul

Lisi, Christine wrote:
> 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/|
> +-----------------------------------------------------------------+
>
>

--
+-----------------------------------------------------------------+
|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