[Chameleon] Path or Directory In Chameleon

Delfos, Jacob jacob.delfos at maunsell.com
Tue Mar 7 21:35:41 EST 2006


Pssdal
 
Check your php.ini file for a line that says:
 
"error_log = "
See where it points to. It is bound to have some lines in it about why
it failed. Make sure you have php set up to log errors.
 
In Windows, the php.ini file sits in c:\windows. On linux, I'm not sure.
 
regards,
 
Jacob
 
 
 


________________________________

	From: Pssdal Bakosurtanal [mailto:pssdal at gmail.com] 
	Sent: 8 March 2006 10:32
	To: Delfos, Jacob
	Subject: Re: [Chameleon] Path or Directory In Chameleon
	
	
	Dear Jacob,
	
	It was nothing on the screen. I can see anything just blank
screen.
	Any opportunity to solve this problem?
	
	Thanks
	Pssdal
	
	
	On 3/8/06, Delfos, Jacob <jacob.delfos at maunsell.com> wrote: 

		Pssdal,
		 
		It will help very much if you can tell us what your PHP
log says. That will tell us where it's going wrong.
		 
		regards,
		 
		Jacob
		 


________________________________

			From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Pssdal
Bakosurtanal
			Sent: 8 March 2006 09:36
			To: chameleon at lists.maptools.org
			Subject: [Chameleon] Path or Directory In
Chameleon
			
			

				Dear Expert,
		
		Chameleon has cleared directory structure like as :
		-web/samples/
		|---data/
		|     |__ 50000/
		|               |___diox
		|               |          |___ diox1.shp , diox1.dbf 
		|               |___gnlh
		|___ map/
		|___ etc/
		|___ htdocs/
		
		My problem is when I created sub folder under htdocs
like as below
		-htdocs/
		|___ diox/
		|         |____ diox1.map
		|         |____ diox1.phtml 
		|         |____ diox1.html
		|         |____ diox1.xml
		|___ gnlh/
		|___ etc/
		
		and I want to use this subfolder to collect files of
mapfile, html file, phtml file and also xml.file,
		for example I would like to put diox1.map,
diox1.html,diox1.phtml and diox1.xml under subfolder of "diox".
		
		When I try to to access
http://server/map/diox/diox1.phtml I can't see anything? 
		Could you help me where is the problem?
		
		Here is detail of my script :
		1. setting httpd.d
		    httpd_pssdalweb.conf :
		=============================
		Alias /pssdalweb/ "/ms4w/apps/pssdalweb/" 
		<Directory "/ms4w/apps/pssdalweb/">
		  AllowOverride None
		  Options Indexes FollowSymLinks Multiviews 
		  Order allow,deny
		  Allow from all
		</Directory>
		==================================== 
		  httpd_map.conf :
		========================================
		Alias /map/ "/ms4w/apps/pssdalweb/spasial/htdocs/50000/"
		<Directory "/ms4w/apps/pssdalweb/spasial/htdocs/50000/">
		  AllowOverride None 
		  Options Indexes FollowSymLinks Multiviews 
		  Order allow,deny
		  Allow from all
		</Directory>
		=========================================
		
		2. Mapfiles diox1.map 
		============================================ 
		.......
		  SHAPEPATH      "../data/50000/"
		  IMAGECOLOR     255 255 255
		  FONTSET     ../etc/fonts.txt 
		  SYMBOLSET     ../etc/symbols.sym
		  UNITS        dd
		 
		....
		  IMAGEPATH "/ms4w/tmp/ms_tmp/" 
		  IMAGEURL "/ms4w/tmp/ms_tmp/"
		#  LOG "/MS4W/tmp/gmap.log"
		..........
		  # Start of LAYER DEFINITIONS
---------------------------------------------
		  
		LAYER # Hidrologi 
		    GROUP "Hidrologi" 
		
		    NAME         hidr
		
		    METADATA
		      "DESCRIPTION"   "HIDROLOGI"
		      "RESULT_FIELDS" "Keterangan"
		      "GROUP" "Hidrologi"
		      "LAYER" "hidr11" 
		    END
		    
		    DATA         "hidr/hidr11"
		    STATUS       ON
		    TYPE         POLYGON
		
		    TEMPLATE "ttt_query.html"
		  
		    TOLERANCE 5
		  
		    TOLERANCEUNITS     PIXELS 
		
		    PROJECTION
		      "init=epsg:4326"
		    END
		    
		    CLASS
		      NAME   "Keterangan"
		      COLOR      190 198 97
		      OUTLINECOLOR 0 0 0
		    END
		
		.....
		END # Dissolved Oxygen Kutim 
		
		END # end of map file
		=================================================
		
		3. html file : diox1.html
		=================================================
		.............
		<div align="center" id="TitleLayer" name="TitleLayer"> 
		<!-- TITLE --> 
		<cwc2 type="Title" label="Kutai Timur Propinsi
Kalimantan Timur" labelclass="title">
		</cwc2>
		<!-- SESSIONEXPIRED -->
		<cwc2 type="SessionExpired" text="Your session has
expired."> 
		</cwc2>
		</div>
		......
		
		<div align="left" id="LegendLayer" name="LegendLayer">
		<table cellspacing="0" cellpadding="2">
		  <cwc2 type="XMLThemeLegend" popupwidth="400"
popupheight="400"> 
		        <selection name="SampleLegend"
template="htdocs/50000/diox/diox1.html"
themefile="htdocs/50000/diox/diox1_themes.xml"
contextfile="htdocs/50000/diox/diox1.map"
rendererfile="indonesia_renderer.html"/> 
		    </cwc2>
		.......
	
==========================================================
		
		4. phtml file diox1.phtml
		========================================] 
		...
		$szTemplate = "./50000/diox/diox1.html";
		$szMapFile = "../htdocs/50000/diox/diox1.map"; 
		.....
		============================================== 
		
		5.xml file diox1.xml
		=================================
		<themes>
		    <global>
		        <separator name="Separator" isVisible="yes"
src="http://..."/>
		        <themeParams bold="true" font="Arial, Helvetica,
sans-serif" size="2"   extendAbstract="true" icon="images/unknown.gif"
extendContext="false"/> 
		        <groupParams bold="false"  font="arial"
size="8.25" extendAbstract="true" icon="images/unknown.gif"
visible="true"/>
		    </global>
		
		    <theme name="Hidrologi" type="checkbox"
ABSTRACT="TBA">
		        <group name="Hidrologi" ABSTRACT="TBA"
visible="true" icon="images/hidro.gif"> 
		            <layer name="hidr"/>
		        </group>      
		    </theme>
		    
		    <theme name="Jalan" type="checkbox" ABSTRACT="TBA">
		        <group name="Jalan Kutim" ABSTRACT="TBA"
visible="true" icon="images/jalan.gif"> 
		            <layer name="jln"/>
		        </group> 
		    </theme>
		
		    <theme name="D A S" type="checkbox" ABSTRACT="TBA">
		        <group name="Sungai" ABSTRACT="TBA"
visible="true" icon="images/sngl.gif"> 
		            <layer name="sngl9"/>
		        </group>      
		    </theme>
		
		    <theme name="Analisis" type="checkbox"
ABSTRACT="TBA">
		        <group name="Dissolved Oxygen" ABSTRACT="TBA"
visible="true" icon="images/pnt.gif"> 
		            <layer name="diox"/>
		        </group>      
		    </theme>
		    
		    <theme name="Lain" type="checkbox" ABSTRACT="TBA"
extralayers="true"> 
		    </theme>
		</themes>            
	
================================================================
		
		regards,
		
		Pssdal
		





More information about the Chameleon mailing list