O/H Bruno Friedmann έγραψε:
Νίκος Παπαδάκης wrote:
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
*

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\";";
line 47            eval($expr);
        }
        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 ...




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!

but the problem insists!
Is there anything else i could check?
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to