<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>try renaming </FONT><FONT size=3>serverDhis.php to
ServerDhis.php </FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=venu.papasani@gmail.com
href="mailto:venu.papasani@gmail.com">VenuGopal Papasani</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 07, 2006 10:57
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] Regarding
creating configuration (.ini) files</DIV>
<DIV><BR></DIV>
<P>Hi Oliver,<BR> I have made a configuration file
with .ini extension and inside the file i have given the following</P>
<P> venu=true;</P>
<P> I have placed that ini file in
projectname/server_conf/projectname/</P>
<P> Now I have opened my plugin (gopal) in the constructor
of the file plugins\dhis\server\serverDhis.php i have written the following
code
i.e<BR>
<BR>
if ($this->getconfig()->venu)
<BR>
{<BR>
print("hello");<BR> }</P>
<P> now i was getting the following errors</P>
<P><BR>Class : CartocommonExceptionMessage : Error [8, Undefined
property: SoapFault::$faultcode,
c:\wamp\www\cartoweb3\client\CartoserverService.php, 40]<BR>Backtrace:</P>
<P>file: 40 - c:\wamp\www\cartoweb3\client\CartoserverService.php<BR>call:
Common->cartowebErrorHandler(8, "Undefined property:
SoapFault::$faultcode", "c:\wamp\www\cartoweb3\client\CartoserverService.php",
40, Array(1)) </P>
<P>file: 105 - c:\wamp\www\cartoweb3\client\CartoserverService.php<BR>call:
SoapFaultWrapper->__construct(Object(SoapFault))</P>
<P>file: 156 - c:\wamp\www\cartoweb3\client\CartoserverService.php<BR>call:
CartoserverService->callDirect("getMapInfo", "zanzibar.zanzibar")</P>
<P>file: 215 - c:\wamp\www\cartoweb3\client\CartoserverService.php<BR>call:
CartoserverService->callFunction("getMapInfo", "zanzibar.zanzibar")</P>
<P>file: 60 - c:\wamp\www\cartoweb3\client\ClientMapInfoCache.php<BR>call:
CartoserverService->getMapInfo("zanzibar.zanzibar")</P>
<P>file: 99 - c:\wamp\www\cartoweb3\common\MapInfoCache.php<BR>call:
ClientMapInfoCache->computeMapInfo()</P>
<P>file: 92 - c:\wamp\www\cartoweb3\client\ClientMapInfoCache.php<BR>call:
MapInfoCache->cacheMapInfo()</P>
<P>file: 764 - c:\wamp\www\cartoweb3\client\Cartoclient.php<BR>call:
ClientMapInfoCache->checkMapInfoTimestamp(1138947430)</P>
<P>file: 876 - c:\wamp\www\cartoweb3\client\Cartoclient.php<BR>call:
Cartoclient->getMapResultFromRequest(Object(MapRequest))</P>
<P>file: 1011 - c:\wamp\www\cartoweb3\client\Cartoclient.php<BR>call:
Cartoclient->doMain()</P>
<P>file: 38 - c:\wamp\www\cartoweb3\htdocs\client.php<BR>call:
Cartoclient->main()</P>
<P>file: 3 - c:\wamp\www\cartoweb3\htdocs\zanzibar.php<BR>call:
require_once("c:\wamp\www\cartoweb3\htdocs\client.php")</P>
<P> Why i was
getting these errors can u please suggest me what changes i have to make.</P>
<P><BR>Regards,<BR>venu.<BR></P><BR><BR>
<DIV><SPAN class=gmail_quote>On 2/7/06, <B class=gmail_sendername>oliver</B>
<<A
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV><FONT size=2>Hi Venu,</FONT></DIV>
<DIV><FONT size=2>simply create a .ini file with the same name as your
plugin and put inside a variable and its value(s), like that: varname =
varvalue[, varvalue2, varvalue3, ...]</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>to get the ini value from your plugin, use:
$this->getConfig()->varname </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards,</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=e id=q_1094359ce30f7733_1>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=venu.papasani@gmail.com
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:venu.papasani@gmail.com" target=_blank>VenuGopal Papasani
</A></DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:cartoweb-users@lists.maptools.org"
target=_blank>cartoweb-users@lists.maptools.org </A></DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 07, 2006 5:16
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Regarding
creating configuration (.ini) files</DIV>
<DIV><BR> </DIV>
<DIV>Hi all,</DIV>
<DIV> I have created a plugin.I want to write a
configuration file for that.What are the things to be placed in the
configuration file.It would be helpful for me any of u send me a plugin
and the corresponding configuration file as an example so that i can have
a overview of that. </DIV>
<DIV> </DIV>
<DIV> Thanks in advance,</DIV>
<DIV> </DIV>
<DIV>Thanks and Regards,</DIV>
<DIV>Venu</DIV></SPAN></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Cartoweb-users@lists.maptools.org"
target=_blank>Cartoweb-users@lists.maptools.org </A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>
<P></P>
<P></P></BLOCKQUOTE></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>