我正在使用PHP制作一个twitter应用程序。如果这个问题是基本的,请原谅。在我的应用程序中,初始登录页面(index.php)包含登录/oauth代码。如果用户成功登录,我应该完全加载一个新页面,还是只显示用户个人资料页面的echo html。例如:if(login success) { load a file that renders selected user's profile page }if(login success) { echo html that renders a profile page. }