PHP Parse error:parse error, unexpected T_object_operator

Source: Internet
Author: User
Tags apache error log parse error
Code

                      

Load ($URL); Print

";                    Print ($dom->savexml ());        $dictArray = $dom getElementsByTagName ("dict");      foreach ($dictArray as $dict) {$key = $dict        -getElementsByTagName ("key");        $key = NodeValue, $key, item (0);       $key = Iconv ("UTF-8", "GB2312", $key);       Note to transcode for Chinese, because XML defaults to UTF-8 format echo ("* * * Output >key> content: * * *:".         $key);        $lang = $dict getElementsByTagName ("Lang"); $lang = Utf8_decode ($lang, item (0), Nodevalu        e);     echo "  
" ; Echo ("* * * Output >lang> content: * * *:".) $lang); }?>

Customer feedback above code blank, Apache error log below

PHP Parse error:parse error, unexpected t_object_operator in/var/www/vhosts/xxh.com/httpdocs/test.php on line 11
Content-type:text/html
x-powered-by:php/4.3.9

Later uploaded to the PHP5.1 version found normal.

PHP 4.3.9 has a problem
PHP 5.1.6 (CLI) No problem

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.