Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的脚本在 PHP 中打开一个连接fsockopen并进入无限循环时,如果连接仍然良好while,我如何检查循环内部?
fsockopen
while
例如,如果我的互联网断了,循环仍然会继续,这很糟糕。谢谢。
fgets() fwrite() 等等可能会失败。你试过feof ()吗?