[mapserver-commits] r8037 - trunk/docs/howto

svn at osgeo.org svn at osgeo.org
Fri Nov 21 12:04:30 EST 2008


Author: hobu
Date: 2008-11-21 12:04:30 -0500 (Fri, 21 Nov 2008)
New Revision: 8037

Modified:
   trunk/docs/howto/phpmapscript-byexample.txt
Log:
titling

Modified: trunk/docs/howto/phpmapscript-byexample.txt
===================================================================
--- trunk/docs/howto/phpmapscript-byexample.txt	2008-11-21 16:58:37 UTC (rev 8036)
+++ trunk/docs/howto/phpmapscript-byexample.txt	2008-11-21 17:04:30 UTC (rev 8037)
@@ -1,18 +1,19 @@
-..
+*****************************************************************************
+ PHP MapScript by Example
+*****************************************************************************
 
-----------------------
-
 :Author:       Vinko Vrsalovic
-:Contact:      el(at)vinko.cl
+:Contact:      el at vinko.cl
+:Revision: $Revision$
+:Date: $Date$
 :Last Updated: 2005/12/12
 
-----------------------
-
 .. sectnum::
 
-.. contents:: Table of Contents
+.. contents::
     :depth: 2
     :backlinks: top
+    
 
 Introduction
 ============
@@ -86,7 +87,7 @@
 at the following diagram (I apologize again for the maintainer's lack of graphic 
 design taste).
 
-.. image:: /docs/howto/phpmapscript-byexample/phpmapscript-architecture/
+.. image:: ../image/phpmapscript-byexample.png
 
 It all starts as everything on the Web. A browser requests a certain URL through 
 HTTP. The request arrives at the web server, which, in turn, delivers a file or 
@@ -263,7 +264,7 @@
 
 The output (using the europe shapefile) should look like this:
 
-.. image:: /docs/howto/phpmapscript-byexample/phpmapscript-byexample-map/
+.. image:: ../image/phpmapscript-byexample-map.png
 
 Zooming and Panning
 -------------------
@@ -314,23 +315,23 @@
         8 $map = ms_newMapObj($map_path.$map_file);
         
         
-        9 if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"])
-        10      && !isset($HTTP_POST_VARS["full"]) ) {
+        9 if ( isset($_POST["mapa_x"]) && isset($_POST["mapa_y"])
+        10      && !isset($_POST["full"]) ) {
         
-        11      $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); 
+        11      $extent_to_set = explode(" ",$_POST["extent"]); 
         
         12      $map->setextent($extent_to_set[0],$extent_to_set[1],
         13                      $extent_to_set[2],$extent_to_set[3]);
         
         14      $my_point = ms_newpointObj();
-        15      $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]);
+        15      $my_point->setXY($_POST["mapa_x"],$_POST["mapa_y"]);
         
         16      $my_extent = ms_newrectObj();
         
         17      $my_extent->setextent($extent_to_set[0],$extent_to_set[1],
         18                              $extent_to_set[2],$extent_to_set[3]);
         
-        19      $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"];
+        19      $zoom_factor = $_POST["zoom"]*$_POST["zsize"];
         20      if ($zoom_factor == 0) {
         21              $zoom_factor = 1;
         22              $check_pan = "CHECKED";



More information about the mapserver-commits mailing list