PHP Variables with the same name

前端 未结 2 973
南方客
南方客 2021-01-27 13:02

I am trying to integrate my login system made with PHP with the PHPBB Login system. My problem is that I am including the PHP login document which contains a class called

2条回答
  •  长发绾君心
    2021-01-27 13:25

    Can you not change the variable?

    Such as

    valid_uid($phpbb_user->uid))
        {
        }
    ?>
    

    edits:

    Can you add a second variable

    Open common.php and find the following:

    $user  = new user();
    

    add After

    $backup_user  = $user;
    

提交回复
热议问题