在unix上运行的PHP脚本中出现奇怪的错误

-1 php

我在unix shell中运行php,我收到以下错误.该脚本是一个Web scraper,如果我访问它,它在我的主机上运行正常.但是我想把它作为一个cron工作来运行,我该怎么办?

警告:file_get_contents(http://www.lomamatkat.fi/iframes/last-minute-offers/?lastminute_next=50):无法打开流:在/ var/www/customers/lentovertailufi/public_html中找不到合适的包装器第30行上的/matkat/script/lomamatkat.php PHP警告:file_get_contents():第30行的/var/www/customers/lentovertailufi/public_html/matkat/script/lomamatkat.php中的服务器配置中禁用了URL文件访问

r3c*_*r3c 7

更新php.ini文件,并将'allow_url_fopen'选项设置为'On'.