A confused Network Admin
Lisi, Christine
lisi at MYDELRAYBEACH.COM
Wed Mar 2 08:26:59 PST 2005
OK, Paul's script now works and returns no errors - also sees MapScript.
The way I accomplished this was that I downloaded PHP MapScript version
4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible
with MapServer 4.5, but I can't find that version on the MapServer site.
The latest listed is 4.4.1. Why oh why does this all have to be so
complicated?! Does anyone know where I can download MapServer 4.5?
My other concern is that many of the .dll files in this MapScript 4.5
version are older than those in MapServer. I did replace the gdal12.dll
in MapServer with the version 1.2.5 from MapScript 4.5 because it states
in the README.txt that MapScript requires this version. I hope this
doesn't mess things up in the long run.
Is anyone else as frustrated as I am?
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