摘要: php用curl访问有http digest验证的网址时,不能直接加在URL上,例如:http://user:pass@xxx.xxx.xxx.xxx/index.php?a=1&b=2这种访问方式给浏览器后,浏览器会将 user:pass 处理后(密码用服务端返回的随机数做hash)放到heade 阅读全文
posted @ 2018-09-27 15:11 河在谈 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 有时候会用到php调用服务器端的其它可执行文件,system和exec函数都是阻塞执行的,执行完第三方程序再返回。 如果我们需要立即返回,让第三方程序在后台继续执行,调用方式如下: linux,nohup 1、 system(“nohup ./test.py $s >>/tmp/output.txt 阅读全文
posted @ 2018-09-27 09:55 河在谈 阅读(231) 评论(0) 推荐(0) 编辑