<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
O/H Bruno Friedmann έγραψε:
<blockquote cite="mid:48B2DBA3.2090508@ioda-net.ch" type="cite">
<pre wrap="">Νίκος Παπαδάκης wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello to everyone!
I try to run a project and get the following error message.
*Parse error*: syntax error, unexpected T_OBJECT_OPERATOR in
*C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : eval()'d code* on
line *1*
*Warning*: Cannot modify header information - headers already sent by
(output started at C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) :
eval()'d code:1) in *C:\ms4w\apps\cartoweb3\client\FormRenderer.php* on
line *460
*
</pre>
</blockquote>
<pre wrap=""><!---->
as the code
/**
* Returns a structure from an array loaded from a .ini
*
* Value of key my.little.key will be stored in structure->my->little->key.
* @param array
* @return stdClass
*/
static public function loadFromArray($array) {
$struct = new stdclass();
foreach($array as $key => $value) {
$tokens = explode('.', $key);
$path = implode('->', $tokens);
$expr = "\$struct->$path = \"$value\";";
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">line 47 eval($expr);
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!----> }
return $struct;
}
This would indicate an error in the .ini you use ...
Be carefull with ini
myvalue = 'Someting,other,another,' isn't valid due to the quotes ...
</pre>
</blockquote>
Well,i checked all .ini files and also compared their syntax with the
.ini files from the foss4g example and i haven't put any quotes at all!<br>
<br>
but the problem insists!<br>
Is there anything else i could check?<br>
</body>
</html>