且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

php运行一次并在mysql数据库中插入两次

更新时间:2023-02-05 19:08:19

我正面临与您相同的问题,仅当我使用Opera或chrome时才出现此问题.

I'm facing the same issue as you, the problem only occus when I use Opera or chrome.

对于我来说,我有一个.htaccess,将所有内容都指向索引文件.自然,浏览器会两次请求该脚本,一次是针对自己的脚本,另一次是针对图标的访问.

For my case, I have an .htaccess to point every thing to the index file. Naturally the browser will request the script twice, once for the script it self, the other is for the favicon.

修复: 当浏览器请求favicon.ico