[Mapserver-users] Problem with Php and Mapscript
Adam Zornes
zornes at athenic.com
Thu Jul 17 08:53:53 PDT 2003
This is a multi-part message in MIME format.
------_=_NextPart_001_01C34C7B.9F3836E9
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
All,
=20
I am attempting to configure mapserver with php mapscript on
a Windows NT machine. I have successfully installed php, and when I ran
phpinfo() the correct mapserver information showed up. However, when I
attempt to access the mapserver program through php, I get the following
error "Fatal error: Call to undefined function: ms_newpointobj() in
D:\TreeGuideIntranet\mapserver\frankfort\frankfort.phtml on line 34."
=20
I have no idea why this problem persists. I have configured
IIS so that .phtml pages should be handled by php.exe. I have followed
the advice to this regard as specifically as possible, but still receive
the above error.
=20
I am currently using a binary of mapserver 4.0 beta 2 with
png support (I have used other versions in hopes of a difference in
compilations). I am using php 4.3.2 (also a binary) compiled to be used
as a cgi executable.=20
=20
Does anyone have advice? Thank you for your time.
=20
Cheers,
Adam Zornes
Athenic Systems
------_=_NextPart_001_01C34C7B.9F3836E9
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C34C5A.3972D360">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>All,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>I
am attempting to configure mapserver with php mapscript on a Windows NT
machine.<span style=3D'mso-spacerun:yes'> </span>I have =
successfully installed
php, and when I ran <span class=3DGramE>phpinfo(</span>) the correct =
mapserver
information showed up.<span style=3D'mso-spacerun:yes'> =
</span>However,
when I attempt to access the mapserver program through php, I get the =
following
error “</span></font><b><span style=3D'font-weight:bold'>Fatal =
error</span></b>:
Call to undefined function: ms_<span class=3DGramE>newpointobj(</span>) =
in <b><span
style=3D'font-weight:bold'>D:\TreeGuideIntranet\mapserver\frankfort\frank=
fort.phtml</span></b>
on line <b><span =
style=3D'font-weight:bold'>34.”<o:p></o:p></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'><o:p> </o:p></span></fon=
t></b></p>
<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'><span =
style=3D'mso-tab-count:1'>  =
; </span></span></font></b><span
style=3D'mso-bidi-font-weight:bold'>I have no idea why this problem
persists.<span style=3D'mso-spacerun:yes'> </span>I have =
configured IIS so
that .phtml pages should be handled by php.exe. <span
style=3D'mso-spacerun:yes'> </span>I have followed the advice to =
this regard
as specifically as possible, but still receive the above =
error.<o:p></o:p></span></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'><span =
style=3D'mso-tab-count:1'>  =
; </span>I
am currently using a binary of mapserver 4.0 beta 2 with png support (I =
have
used other versions in hopes of a difference in compilations).<span
style=3D'mso-spacerun:yes'> </span>I am using php 4.3.2 (also a =
binary)
compiled to be used as a cgi executable. <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'><span =
style=3D'mso-tab-count:1'>  =
; </span>Does
anyone have advice?<span style=3D'mso-spacerun:yes'> </span>Thank =
you for
your time.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'>Cheers,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'>Adam =
Zornes<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;mso-bidi-font-weight:bold'>Athenic Systems</span></font><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>
</div>
</body>
</html>
------_=_NextPart_001_01C34C7B.9F3836E9--
More information about the MapServer-users
mailing list