09 2018 档案
摘要:php用curl访问有http digest验证的网址时,不能直接加在URL上,例如:http://user:pass@xxx.xxx.xxx.xxx/index.php?a=1&b=2这种访问方式给浏览器后,浏览器会将 user:pass 处理后(密码用服务端返回的随机数做hash)放到heade
阅读全文
摘要:有时候会用到php调用服务器端的其它可执行文件,system和exec函数都是阻塞执行的,执行完第三方程序再返回。 如果我们需要立即返回,让第三方程序在后台继续执行,调用方式如下: linux,nohup 1、 system(“nohup ./test.py $s >>/tmp/output.txt
阅读全文
摘要:@echo offset "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"C:/mysql/bin/mysqldump --opt -u root --password=root dbname > E:/bak/db/dbname_%Ymd%.sql@echo on
阅读全文