yangzailu

导航

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

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.

posted on 2016-08-30 09:40  飞离地平线  阅读(753)  评论(0编辑  收藏  举报