[ka-Map-users] Newbie: Need help with IIS configuration???
Christopher Schmidt
crschmidt at crschmidt.net
Thu May 24 00:12:46 EDT 2007
On Wed, May 23, 2007 at 08:33:52PM -0400, Paul Spencer wrote:
> >Warning: dl() [function.dl]: Not supported in multithreaded Web
> >servers - use extension=php_mapscript_46.dll in your php.ini in C:
> >\ka-map-1.0\htdocs\init.php on line 118
> >
> >Fatal error: Call to undefined function ms_newMapObj() in C:\ka-
> >map-1.0\htdocs\init.php on line 124
>
> Extensions to PHP can be compiled into the PHP executable (common on
> linux) or can be compiled as external libraries (dlls) and loaded
> dynamically. There are two ways to dynamically load an extension,
> one is to add extension= in php.ini and the other is to use dl() in
> the code. ka-Map's init.php should be checking to see if 'MapScript'
> is already loaded before it tries to use the dl() function. This
> means that, despite your best intentions, your php.ini is either
> flawed or not being used for some reason. To confirm this, you can:
>
> 1. extend your hello world to call some function only available in an
> extension that is not already part of PHP
> 2. run it to confirm that it fails
> 3. modify your php.ini to load the extension
> 4. re-run the test to see if it works. If it does work, then there
> is something wrong with the mapscript extension. If it doesn't work
> then there is something wrong with your IIS configuration.
>
Note that something you can use in this case would be the 'phpinfo()'
call -- view the output, and check it for a 'mapscript' section. (And a
'gd' section, too.)
Regards,
--
Christopher Schmidt
Web Developer
More information about the ka-Map-users
mailing list