I have a php file that uses file_get_contents()
It works fine in the browser, but does not work with the following error on startup as a cron job:
Warning: file_get_contents (): URL file access is disabled on the configuration server in /path/to/the/phpfile.php on line 22
This is what I use:
/ usr / bin / php5 -q /path/to/the/phpfile.php
Iv'e already installed allow_url_fopen = truein php.ini, but this does not seem to have any effect.
Everything works fine in the browser. How can this be fixed?
source
share