Cron problem

Status
Not open for further replies.

gabboc77

New Member
Messages
1
Reaction score
0
Points
0
Hello,
I have a problem with a cron job. If I run my file manually, it works fine , but by cron job....no.
In the error log I see "PHP Warning: file_get_contents(): URL file-access is disabled in the server configuration "
Why? Is there a way to resolve?
Thanks
 

cybrax

Community Advocate
Community Support
Messages
764
Reaction score
27
Points
0
Why..

Is because of other people abusing the command file_get_contents (and cURL) to scrape data from other web sites. Any outbound request on port 80 is blocked I believe.

Solutions..
Upgrade to premium hosting is the easy way to solve this.
Search for another Free web hosting provider that allows the commands (best of luck)
Run a home web server and POST data back to the X10 web server (you might as well run the entire site from home)


There may be an alternative or workaround, what is it exactly that you are trying to do?
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
port 80 is currently not blocked, but a lot other ports would be (only the common ones are open).

what's the command you use to get the cron executed, and what port would it connect to?
 
Status
Not open for further replies.
Top