PHP Variables with the same name

好久不见. 提交于 2019-12-02 10:09:47

You could run your code in a function. Functions aren't passed global variables if you don't explicitly tell them ;)

Can you not change the variable?

Such as

<?php
    include 'the/phpbb/core.pohp';

    $phpbb_user = $user;

    include 'my/login.pohp';

    if($user->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;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!