[Mapserver-users] Compiling PHP_MapScript.dl...
Yewondwossen Assefa
assefa at dmsolutions.ca
Thu Apr 8 12:08:52 PDT 2004
I just tried the function using a small script with the dll posted :
<?php
dl ("php_mapscript_41.dll");
echo ms_getversion();
?>
results are
MapServer version 4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
It seems to me that the php mapscript dll module did not load on your
machine for some reason (common problem being some dll's related to
mapserver library were not loaded). My best guess is maybe, you did not
install the libpq dll (which is related to the postgis and available in
the zip). But this is just a guess. I also suggest that you use a tool
like depend.exe (http://www.dependencywalker.com/) that let you identity
if you miss some dependent dlls.
Later,
Mike Leahy wrote:
> Assefa,
>
> I really appreciate your help.
>
> Unfortunately, I've got a new problem...it seems the functions in the
> php_mapscript_41.dll supplied with the binaries you just posted are
> different. When I use that dll, I get the following error in my mapviewer
> web page:
>
> Fatal error: Call to undefined function: ms_getversion() in
> D:\educal\www\mapviewer\globprefs.php on line 147
>
> The old dll I have works okay, but I want to avoid using binaries from
> different compilations if I can. Is this function named differently now, or
> is it gone altogether? Perhaps there is a new function reference for
> mapscript that I should look at...
>
> Thanks,
> Mike
>
>
> -----Original Message-----
> From: Mike Leahy [mailto:mgleahy at fes.uwaterloo.ca]
> Sent: April 8, 2004 1:14 PM
> To: 'Yewondwossen Assefa'
> Subject: RE: [Mapserver-users] Compiling PHP_MapScript.dl...
>
> Assefa,
>
> I really appreciate your help.
>
> Unfortunately, I've got a new problem...it seems the functions in the
> php_mapscript_41.dll supplied with the binaries you just posted are
> different. When I use that dll, I get the following error in my mapviewer
> web page:
>
> Fatal error: Call to undefined function: ms_getversion() in
> D:\educal\www\mapviewer\globprefs.php on line 147
>
> The old dll I have works okay, but I want to avoid using binaries from
> different compilations if I can. Is this function named differently now, or
> is it gone altogether? Perhaps there is a new function reference for
> mapscript that I should look at...
>
> Thanks,
> Mike
>
>
>
> -----Original Message-----
> From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca]
> Sent: April 8, 2004 10:34 AM
> To: Daniel Morissette
> Cc: Mike Leahy; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Compiling PHP_MapScript.dl...
>
> I was under the impression that I did include Postgis but I was wrong. I
> have updated the download site on maptools with new binaries that
> include Postgis. Note that I have never been able to nativly
> postgrs/postgis on windows and I am still using old binaried posted on
> the list several months ago.
>
> Later,
>
> Daniel Morissette wrote:
>
>>Mike Leahy wrote:
>>
>>
>>>I had actually posted a message about this earlier asking if maybe the
>>>next posted copy of MapServer 4.1-dev binaries could include PostGIS
>>>support, but nobody replied and I actually somehow got removed from
>>>the mailing list shortly after that (!?). I realize that the
>>>developers cannot meet all requests made by users. So, when the April
>>>2 version of 4.1 was posted on maptools.org and still didn't include
>>>PostGIS, I started looking at other possible solutions. As you can
>>>see in my subsequent messages, I didn't really find much
>>>success...mostly due to the fact that I'm working in a Windows
>>>environment. For now, I'll stick with the older versions that I
>>>currently have working.
>>>
>>
>>Oh, I see... I thought that Assefa's windows binaries (the ones on
>>maptools.org) did include PostGIS.
>>
>>Maybe if he reads this he could re-enable PostGIS in the next maptools
>>build for MapServer 4.0.2, or when we release 4.2 in a few weeks.
>>
>>Daniel
>
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list