【发布时间】:2013-02-02 19:36:56
【问题描述】:
我使用 .bat 文件将我的 php 文件创建为
@ECHO OFF
php -f D:\wamp\www\scrapper\scrapper5.php
我在 scrapper5.php 中使用了 cURL,当我手动运行 .bet 文件时出现错误
call to undefined function curl_init() 在你的文件中
我研究并发现 cURL 在 CLI 模式下不起作用。
我只是按照以下步骤操作,但无法成功。
Run a php script as a background process in wamp server
如何使用 cURL 运行批处理文件?
谁能给我解决办法?
【问题讨论】:
标签: php curl windows-7 batch-file