Menu

parse error in 0.7.2?

Help
2010-04-21
2013-04-29
  • Nobody/Anonymous

    Hello there,
    getting this error: Parse error: syntax error, unexpected T_PUBLIC in /sdb.php on line 545 

    version 0.5.2 worked ok (only tried createrecord)

    this seems definitley the best simpledb class out there, great work sir-

    jay

     
  • Dan Myers

    Dan Myers - 2010-04-21

    $ php -l sdb.php
    No syntax errors detected in sdb.php

    Looks fine to me.

    You'll want to check a couple of things:
    - Make sure you're using PHP 5.1 or greater (I think 5.1 works, anyway), just upgrade to the latest to be sure:

    $ php -v
    PHP 5.2.13-pl0-gentoo (cli) (built: Apr 18 2010 17:24:19)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    

    I'm running a build of 5.2 on gentoo, but anything 5.1 or greater on any distro (or on Windows) should work fine.

    - Make sure the 'curl' and 'openssl' PHP extensions are installed and enabled:

    $ php -i | grep "cURL support"
    cURL support => enabled
    $ php -i | grep "OpenSSL support"
    OpenSSL support => enabled
    

    If you check these things and you still can't get it to work, please send the output of "php -i" to my sourceforge email account and I'll see if I can figure out what's wrong.

    Glad you like the class :)

     

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.