Menu

#3 PHP5

open
nobody
5
2004-09-19
2004-09-19
Anonymous
No

instalation on server with PHP5 failed:

Parse error: parse error, unexpected T_PUBLIC,
expecting ']' in ../book/inc/function.php on line 535

Discussion

  • Nobody/Anonymous

    Logged In: NO

    bk4u doesn't work yet with PHP 5

     
  • balamm

    balamm - 2005-01-24

    Logged In: YES
    user_id=1028943

    Functions.php appears to be full of syntax errors. At least the
    syntax is incorrect for php5 and a lot of us are running php5
    now.
    Commenting out the previously reported error produces this
    nex one.
    PHP Parse error: syntax error, unexpected T_PUBLIC,
    expecting ']' in
    C:\apache2triad\htdocs\smgen\home\www\bookmark4u\inc\fu
    nction.php on line 651

    Is there not a simple equivalent in php5 or is this bit of
    deprected code even needed?

     
  • Logan

    Logan - 2005-06-04

    Logged In: YES
    user_id=1215833

    Yep, it's because the word 'public' s used without
    precaution. It isn't a problem with php < 5, but in php5,
    the word 'public' is reserved.
    All you need to do is to replace all the [public] by
    ['public'].
    I'va made these modifications and it's work fine on my php5
    platform.

     

Log in to post a comment.

MongoDB Logo MongoDB