[mapserver-users] RE: php_mapscript installation

Hankley, Chip Chip.Hankley at GASAI.Com
Wed Jul 24 06:32:10 PDT 2002


YC...

I saw your post the other day, but didn't respond b/c the questions Steve
Woodbridge asked were the same ones I would have. The problem I was having
was that I was trying to run a dll compiled for PHP4.04 (hence the name of
the file) on PHP 4.05. As a general rule, you need to be running the same
version of PHP as the dll. So...
 
 o make sure that the versions of PHP between your 2 machines are the same
 o make sure that the version of PHP you are using is the one the dll was
compiled with (this should be specified in the README.txt file that came
with the file).
 o I suspect that PHP is functioning OK if you're getting that error; but
just to make sure, you should try a simple PHP file just to make sure...
something like <?phpinfo();?> in a file called test.php. Make sure you
'comment' out the php_mapscript dll in the php.ini file. If this loads OK,
that should indicate that PHP is working fine, and that it is a problem with
the mapscript dll.
 o The more recent dlls from DM Solutions are compiled with support for a
number of features that require additional libraries. These dependencies are
generally spelled out in the README file and *usually* come in the
distribution. They are a set of dlls that should go in your system32
directory. If these are not installed, the dll will not load.
 o Make sure that you don't have a permissions problem. Using the test.php
page above, review the available 'modules' - next, uncomment one of the dlls
in php.ini... say, dbase support. Then reload test.php. If the dll loaded
successfully, you should see a new entry in the table for the dbase support
module.

Cheers!

Chip

-----Original Message-----
From: YC Nyon [mailto:ycnyon at pd.jaring.my]
Sent: Tuesday, July 23, 2002 9:13 PM
To: Hankley, Chip
Subject: php_mapscript installation


hi,

i say your posting below and is having the same problem.
i got my production server working but when i need to port it over the
'real' server, it gave me this error

Warning: Unable to load dynamic library 'c:\web\php_mapscript_36.dll' - The
specified module could not be found. in C:\Web\GPS_spot\gpsmap.php on line
116

the 2 servers are set identical.
it's so puzzling.

how did u solve your problem

YOUR PREVIOUS MESSAGE
++++++++++++++++++++++
I'm trying to get PHP configured on my machine.

I downloaded 4.0.5 and installed on PWS. Works fine.

I downloaded the php_mapscript.dll (php4.0.4_mapscript_dll-20010108.zip)
from the web site, and placed the dll in my C:\php\ directory.

I've downloaded the 3.3 and 3.4 source to obtain the
phpinfo_mapscritpt.phtml file.

Here's by problem...

When I try to load the php file, I get the following error:

Warning: Unable to load dynamic library 'C:\php/php3_mapscript.dll' - The
specified module could not be found. in
C:\Inetpub\wwwroot\PHP_tests\MapScript\phpinfo_mapscript.php on line 17

The rest of the page loads.

I've tried putting the *.dll in the same directory as the *.php file, the
cgi-bin dirctory, and the c:\php directory. I've also tried changing the
php.ini files extension_dir line to c:\php\. None of this seems to work.

Any ideas on what I'm doing wrong?

Chip

Chip Hankley, GIS Coordinator
Graef, Anhalt, Schloemer & Associates, Inc.
5126 West Terrace Drive
Madison, Wisconsin 53718-8343
Telephone: (608) 245-1969
FAX: (608) 242-0787
http://www.gasai.com/
ChipHankley at GASAI.com





----------------------------------------------------------------------------
----

Prev by Date: [mapserver-users] Standalone Image Catalog creation tool?
Next by Date: RE: [mapserver-users] Standalone Image Catalog creation tool?
Index(es):



More information about the MapServer-users mailing list