diable fopen and cronjobs

snaaps

Verified User
Joined
Jan 29, 2005
Messages
230
Location
Netherlands
Hello,

whe have disabled the fopen url function in the php.ini settings and add the following code in the custom apache user file when the user wants to enabled the url fopen function:
PHP:
php_admin_flag allow_url_fopen On

This works perffect, but when the user used a cronjob witch used also the url fopen function it will deny to used or download content from other urls.
The cronjob gives a error:
PHP:
Warning: fopen(): URL file-access is disabled in the server configuration
in
 /home/user/domains/domainname.com/public_html/dir/cron.php
 on line 65

Is there anyway to resolve this problem so the cronjobs can acces other urls?
 
Back
Top