A confused Network Admin

Lisi, Christine lisi at MYDELRAYBEACH.COM
Wed Mar 2 10:48:16 EST 2005


I am going to be daring and try the MapScript 4.5 version.  I can't bear
to have to reinstall PHP so I will take that chance.  I hope there are
people out there using PHP5 so that we will have more support for it.

Thanks for the info.  I will let you know the result.

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: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] 
Sent: Wednesday, March 02, 2005 10:25 AM
To: Lisi, Christine
Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin

There is one at the end of the page (the last link) which is a 
php_mapscript built around February 7 using php5.0.3. These builds 
(development builds) are done using the current CVS (the most recent 
source codes).  They are usually stable but only people who need the 
latest stuff between releases should use them.

Here are a couple of options :
   - if you absolutly need to use php5.0.3 :
        * you could download the development version (the version is 
labelled 4.5 and will be released sometime before May  as 4.6)
        * If you want the latest *release* version of 
Mapserver/phpmapscript (which  is 4.4.1) , I can do a custom build for 
you but there are costs assocaited..

  - If you do not need to use php5, I thing It would be preferable that 
you downlod a php4.3.X version (I think It is 4.3.10) and use the 
binaries at 
http://www.maptools.org/dl/mapserver-4.4.1-win32-php4.3.7.zip. 
</dl/mapserver-4.4.1-win32-php4.3.7.zip>

 I personnaly think the 2nd option is best since that is what most of 
the people are using right now. PHP5 is pretty recent and only few 
people are using it right now with php mapscript .

 Later,


Lisi, Christine wrote:

>I think you're right Yewondwossen.  There doesn't seem to be a
MapScript
>version for PHP 5.0.3 on
>http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html.

>Does anyone know of a MapScript version for PHP 5.0.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: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] 
>Sent: Wednesday, March 02, 2005 9:58 AM
>To: Lisi, Christine
>Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin
>
>Couple of notes this error :
>
>  - you should use a program like depends.exe and load
php_mapscript.dll
>
>into it (http://www.dependencywalker.com/) and It  will telll you if 
>some dependent dll's are missing (which is a  common error)
>
> - I have looked into this thread and noted that you are using
php5.0.3.
>
>I am assuming that the php mapscript you have downloaded is built 
>against php 5. You need to make sure on that. (there are php mapscript 
>binaries built for php4.3.X and php5.0.X at 
>http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html)..
>
> I hope it helps. You are not very far from having all this workking :)
>
>Later,
>
>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/|
>>+-----------------------------------------------------------------+
>>
>>
>> 
>>
>>    
>>
>
>
>
>  
>



More information about the mapserver-users mailing list