PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

php图片验证码为什么必须加上ob_clean();才能正常显示。

原创
2016-08-31 08:41:01 919浏览
ob_clean这个函数的作用就是用来丢弃输出缓冲区中的内容,如果你的网站有许多生成的图片类文件,那么想要访问正确,就要经常清除缓冲区。
If you work on an extremely large project with a lot of source and required files, like myself, you will be well-advised to always clear the output buffer prior to creating an image in php.
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
上一条:assign() 下一条:企业建站 ThinkPHP版DouPHP