Autor | Zpráva | ||
---|---|---|---|
noName Profil * |
#1 · Zasláno: 3. 5. 2012, 01:00:02
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 |
||
Časová prodleva: 12 let
|
0