MAPSERVER-USERS Digest - 30 Apr 2006 to 1 May 2006 (#2006-121)
Percy
percyd at PDX.EDU
Tue May 2 06:07:03 PDT 2006
Gary, you just need to include a little chunk of PHP at the top of your page,
like this
<?php
require "inc/header.php";
?>
This will put the contents of that file at the top of your webpage. This does
not happen in the Mapfile!
Hope this helps,
Percy
PSU Geology
> Date: Mon, 1 May 2006 11:49:37 -0500
> From: "Pericles S. Nacionales" <naci0002 at UMN.EDU>
> Subject: Fwd: help please
>
> Folks,
>
> Gary Watry is having problems with the MapServer-Users mailing list. We're
> looking at the problem but I thought I'd forward his questions to the list.
> So, if anyone has the answer... I'm sure he'll be happy to hear from you.
>
> -Perry
>
> >>> "Gary Watry" <watry at coaps.fsu.edu> 5/1/2006 7:35 AM >>>
>
> Good Morning
> 1. I have lost the ability to post to the mapserver forum
> mapserver-users at lists.umn.edu
>
> 2. I need to be able to add a header (mapheader.php) to all my pages, I do
> not want to hardcode the header because as part of the header changes I
> would have to go to too many pages to update it.
>
> In the mapfile are several templates,
> A. if I load a template as follows,
> EMPTY "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurrempty.php"
> the header loads using
> <?php
> include("http://indianocean.coaps.fsu.edu/httpdocs/mapheader.php");
> ?>
>
> B. if I load the template in the WEB portion
> TEMPLATE 'c:\inetpub\wwwroot\httpdocs\hurrtrac.php'
> The header does not load
>
> C. If I load the template in the Layer portion,
> TEMPLATE "c:\inetpub\wwwroot\httpdocs\templates\hurricane.php"
> The query loads but not the header
>
> D. If I load the template in the Layer portion,
> TEMPLATE
> "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurricane.php"
> The header loads but not the query data
>
> Any thoughts or suggestions?
>
> ______________________________________________________________
> Gary L. Watry
>
> GIS Coordinator
> Center for Ocean-Atmospheric Prediction Studies
> FSU / COAPS
> Johnson Building, RM 215
> 2035 East Paul Dirac Drive
> Tallahassee, Florida 32306-2840
>
> E-Mail: watry at coaps.fsu.edu
>
> -------------------------------------------------------
>
> --
> Pericles S. Nacionales
> Conservation Biology Program
> University of Minnesota
> e-mail: naci0002 at umn.edu
>
> ------------------------------
>
> End of MAPSERVER-USERS Digest - 30 Apr 2006 to 1 May 2006 (#2006-121)
> *********************************************************************
>
>
More information about the MapServer-users
mailing list