Autor Zpráva
noName
Profil *
Zdravím, dokáže tento script spustit cron? Když to zkouším ručně tak to jede bez problémů, ale s cronem bohužel response = null

$request = xmlrpc_encode_request($method, $params, array('escaping' => 'markup', 'encoding' => $this->stream_encoding));
$options = array(
            'http' => array(
                'method' => $this->stream_method,
                'header' => $this->stream_header,
                'content' => $request
            )
);
$context = stream_context_create($options);
$file = file_get_contents($this->url, false, $context);
$response = xmlrpc_decode($file, $this->stream_encoding);

Zapisuju pomocí :
$message = var_export($response, true);
$line = date("[j-n-Y-H:i:s]", time()) . $message . "\n";
file_put_contents("error.txt", $line, FILE_APPEND)

Výsledek je null

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0