Home >Backend Development >PHP Tutorial >php-控制器被连续执行二次

php-控制器被连续执行二次

WBOY
WBOYOriginal
2016-06-02 11:33:28898browse

php

问题是这样的,发一份注册激活邮件到用户邮箱,点击邮件是的激活链接,结果,控制器被连续执行二次,把链接手动复制到地址栏回车,就正常执行一次,目前只发现火狐浏览器有这个问题,其他浏览器经过初步测试都是正常的,好奇怪呀:
/**
* 邮箱激活
*/
public function active_user(){
file_put_contents('active.txt', '测试邮箱', FILE_APPEND);
die;
}
结果active.txt里面出现:测试邮箱测试邮箱,即被连续执行了二次,求解释???
开发用的是CI框架

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn