[Cartoweb-users] Cartoweb error.

Bruno Friedmann bruno at ioda-net.ch
Mon Aug 25 12:19:47 EDT 2008


Νίκος Παπαδάκης 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 ...




-- 

     Bruno Friedmann

Ioda-Net Sàrl   - www.ioda-net.ch
  2830 Vellerat - Switzerland

  Tél : ++41 32 435 7171
  Fax : ++41 32 435 7172
  gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com




More information about the Cartoweb-users mailing list