MapTools.org

[maplab-users] dl() not working for MapScript...

Mike Leahy mgleahy@fes.uwaterloo.ca
Tue, 20 Jan 2004 17:34:51 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C3DF7B.B5D013F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hey all,

=20

I currently running my MapServer/MapScript/PHP etc. with IIS on Win2K =
and
WinXP development servers without problems.  I've just setup the exact =
same
configuration on a new Win2003 server.  Now, when I try to load one of =
my
map pages, I get the following:

=20

Warning: dl(): Not supported in multithreaded Web servers - use =
extension
statements in your php.ini in =
d:\educal\www\mapviewer\wrapper\utilities.php
on line 51

Fatal error: Call to undefined function: ms_getversion() in
d:\educal\www\mapviewer\globprefs.php on line 147

=20

I know this is probably more to do with PHP than MapScript, but I'm =
hoping
someone on this list might have experience with the problem.  I checked
enable_dl in php.ini, which is identical to the ones on the other =
servers,
and it says pretty much the same as the msg above; that it won't work =
for
multithreaded servers such as IIS.  This surprises me, because it really
does work in IIS, minus the latest version released with Win2003.  I =
don't
recall ever having this issue before. =20

=20

I tried adding the MapScript dll as an extension in the PHP ini file, =
but
there seems to be no effect.  The load_module() function is called from
globprefs, and is checking to see if the "MapScript" is already loaded.  =
 I
added print_r(get_loaded_extensions()); to the load_module function, and
MapScript does not appear in the list even though it is added as an
extension in the ini file.  Can anyone suggest what should I be doing to =
get
it to load properly, at the very least from the ini file if not with the
dl() function?

=20

Thanks,

Mike

=20


------=_NextPart_000_000C_01C3DF7B.B5D013F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-CA link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hey all,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I currently running my MapServer/MapScript/PHP =
etc&#8230; with
IIS on Win2K and WinXP development servers without problems.&nbsp; =
I&#8217;ve
just setup the exact same configuration on a new Win2003 server.&nbsp; =
Now,
when I try to load one of my map pages, I get the =
following:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>Warning</span></font></b>: =
dl(): Not
supported in multithreaded Web servers - use extension statements in =
your
php.ini in <b><span =
style=3D'font-weight:bold'>d:\educal\www\mapviewer\wrapper\utilities.php<=
/span></b>
on line <b><span style=3D'font-weight:bold'>51</span></b><br>
<br>
<b><span style=3D'font-weight:bold'>Fatal error</span></b>: Call to =
undefined
function: ms_getversion() in <b><span =
style=3D'font-weight:bold'>d:\educal\www\mapviewer\globprefs.php</span></=
b>
on line <b><span style=3D'font-weight:bold'>147</span></b></p>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;</span></font></b></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I know this is probably more to do with PHP than =
MapScript,
but I&#8217;m hoping someone on this list might have experience with the
problem.&nbsp; I checked enable_dl in php.ini, which is identical to the =
ones
on the other servers, and it says pretty much the same as the msg above; =
that
it won&#8217;t work for multithreaded servers such as IIS.&nbsp; This =
surprises
me, because it really does work in IIS, minus the latest version =
released with
Win2003.&nbsp; I don&#8217;t recall ever having this issue before.&nbsp; =
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I tried adding the MapScript dll as an extension in =
the PHP ini
file, but there seems to be no effect.&nbsp; The load_module() function =
is called
from globprefs, and is checking to see if the &#8220;MapScript&#8221; is
already loaded.&nbsp;&nbsp; I added print_r(get_loaded_extensions()); to =
the load_module
function, and MapScript does not appear in the list even though it is =
added as
an extension in the ini file.&nbsp; Can anyone suggest what should I be =
doing
to get it to load properly, at the very least from the ini file if not =
with the
dl() function?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Mike</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_000C_01C3DF7B.B5D013F0--



This archive was generated by Pipermail.