cmd中的php.exe 可以直接请求一个url吗???如果可以参数是啥??
学习是最好的投资!
想访问远程地址的话最好使用curl
curl
php -r "$url = 'xxx'; echo file_get_contents($url);"
当然,你也可以先写好文件然后直接用php执行php xx.php
可以啊!直接执行例如php.exe D:\htdocs\deve.no.1\www\push.php
php.exe D:\htdocs\deve.no.1\www\push.php
可以的
php -r "file_get_contents();" php -r "readfile();"
想访问远程地址的话最好使用
curl
当然,你也可以先写好文件然后直接用php执行
php xx.php
可以啊!直接执行例如
php.exe D:\htdocs\deve.no.1\www\push.php
可以的