Menu

Help with Hello World

Help
philqqq
2004-09-11
2013-04-22
  • philqqq

    philqqq - 2004-09-11

    New to Phrame and Php.  Downloaded phrame-2.1RC1(with examples), but gettting error while testing Hello World.  The error is:

    Parse error: parse error, unexpected T_CLONE, expecting T_STRING in phrame-2.1-examples/phrame/util/Object.php on line 20

    I successfully install Apache2 and Php5 and is running fine.  Any help will be greatly appreciated.

    Thank you

     
    • David Smith

      David Smith - 2004-10-07

      I encountered the same error when attempting to use another PHP framework called Studs. It happens because the code uses a function named 'clone', but PHP 5 defined a new keyword named clone. Probably the simplest solution is to downgrade to PHP 4.

      B.t.w. Have you encountered other PHP frameworks that are perhaps more active in current development, yet more mature than alpha or beta?

       
    • Brandon

      Brandon - 2005-03-25

      hello,

      Actually, I found if you rename the clone function on utils\object.php to _clone, or even ocmment out the function, it works fine.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.