[UMN_MAPSERVER-USERS] mapserver, jbox and php (but not mapscript)

Richard Greenwood richard.greenwood at GMAIL.COM
Sat Apr 9 09:20:37 EDT 2005


kallwn <kallwn <at> ICIRCUS.NET> writes:

> The only thing left that I can think
> of is that somehow that by calling the mapserver cgi it is causing the
> PHP code not to connect to the database and populate the list box. I

The mapserver CGI can not call or run PHP on that page. When you make a request
to a web server it passes a request for dynamic content on to the appropriate
application, mapserver CGI OR PHP (or ASP, or Python, or whatever). That
application does its thing and passes a page back to the web server, which in
turn passes the page back to you. But mapserver can not call the PHP process, or
any other process on the server. Point is, only one server side process can be
called per page. (jBox is a client side process).

If you can convert your MySQL data into a shape file that would probably be
easiset. Mapserver has some support for connecting to MySQL, but I have not
experience with it (search the list archives). Or you could convert your app to
Mapscript.

HTH
Rich



More information about the mapserver-users mailing list