php-mapscript from the command line.
Michael Helmut Arnold
mharnoldx at YAHOO.COM
Sat Jun 18 14:29:19 PDT 2005
I found the problem (was installing php_mapserver.so to the wrong
directory, and consequently loading an older mismatched version.)
Sorry to bother the list prematurely. I did spend hours trying to
track this down before posting, and was about to tear my hair out.
Michael Arnold.
--- Michael Helmut Arnold <mharnoldx at yahoo.com> wrote:
> Hi all,
>
> I am developing a mapserver based website on my Linux box.
> php/mapscript has been working fine for me accessed through Apache.
> But I am having trouble with php scripts using mapserver from the
> command-line.
>
> The simple example below works fine when run from my web-browser, but
> core dumps during the ms_newMapObj() call when run as "%php < bug.php"
>
> Anybody else run into this? Any ideas?
>
> Thanks,
> Michael Arnold.
>
> P.S. I am using mapserver 4.6.0 and php 4.3.11
>
> ---- bug.php ----
>
> <html>
> <?php
>
> // load (as dynamic library)
> dl('php_mapscript.so');
>
> // read .map file
> print ms_getversion();
> $mapxyz = ms_newMapObj("ref.map");
> print " DEBUG bottom.";
>
> ?>
> </html>
>
> Michael Helmut Arnold.
>
> "A computer once beat me at chess.
> But it was no match for me at kick boxing."
>
>
>
> __________________________________
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing and more. Check it out!
> http://discover.yahoo.com/stayintouch.html
>
Michael Helmut Arnold.
"A computer once beat me at chess.
But it was no match for me at kick boxing."
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
More information about the MapServer-users
mailing list