Hi I am running the following script in cron tab:
#!/usr/local/bin/php
<?php
$handle=fopen('xmlfile.xml',"w");
$xmlfile= file_get_contents('http://diur-plus.2me.co.il/xml.aspx');
fwrite($handle,$xmlfile);
fclose($handle);
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
?>
And I get the error "No input file specified."
however when I run it manually from the browser: downloadfile.php then it work just well.
What is responsible for the problem in the cron tab?
I mean it does work properly when I send request to the server from my browser, so why the problem during the corn tab?