I
I
iOS Dav2015-12-04 20:11:03
PHP
iOS Dav, 2015-12-04 20:11:03

Why is it impossible to execute a script in which there are http requests via cron?

<?php
$a=file_get_contents(' ffffffffff.com ');
?>
if called through a browser, then everything works, and if through cron, an error message will be sent to the soap

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evnuh, 2015-12-04
@evnuh

The first rule of a thinking programmer: if something does not work, then read the logs

A
Andrew, 2015-12-05
@R0dger

see access rights .. because it's not a fact that the script is being executed from the right user!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question