[Mapserver-users] how to put php code inside a CGI template
woodbri at swoodbridge.com
woodbri at swoodbridge.com
Tue Jul 22 04:54:16 PDT 2003
Luca,
You can't really do this because it is not the way things work. The
browser makes a request to the server. The server then handles the
request by having the appropriate server side application like GCI
mapserv OR php to process the request. and then it sends the results
back to the browser.
What you are trying to do is send a request to CGI mapserv to process
the templates and the send the results to PHP instead of the browser
to be processed again INSTEAD of sending the results back to the
browser.
If you want to work in PHP then you should not be using CGI mapserv,
you need to rebuild your whole application to be written using
PHP/mapscript.
Hope this helps,
-Steve W.
On 22 Jul 2003 at 10:00, colombo.l wrote:
> hello,
>
> i did a CGI-Mapserver application following some tutorials on the
> site, all work great, I have some problems when I put php code inside
> my template file. I use apache 2.0.40, php 4.3 (working as a cgi) and
> mapserver 3.6.
>
> If I define my template.php as my template (inside mapfile) I get some
> errors (Malformed URL). So I added this line to http.conf:
>
> AddType application/x-httpd-php .html
>
> Now I can put php code inside html pages, but it didn't works with
> mapserver !!
>
> I can't get the php-code to be compiled, mapserver process the page
> but apache+php didn't.
>
> What can I do?
> I really need help.
>
> thank's to all
>
> Luca Colombo
>
>
>
>
> --
> Email.it, the professional e-mail, gratis per te:
> http://www.email.it/f
>
> Sponsor:
> Samsonite ti presenta la nuova F'Lite Lite. E una sorpresa!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1756&d=22-7
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list