php - /bin/sh: 0: command not found -


i have following problem guys, php script this:

#!/usr/bin/php <?php   // define path file  $file = 'mydb.sql';   if(!file)   {     // file doesn't exist, output error     die('file not found');   }   else   {     // set headers     header("cache-control: public");     header("content-description: file transfer");     header("content-disposition: inline; filename=$file");     header("content-type: application/x-sql ");     header("content-transfer-encoding: binary");      // read file disk     readfile($file);    } ?> 

now want call php script via crontab, , cron command is:

0 0 * * * /web/conf/ -q /home/content/81/10928381/html/dumper/work/backup/pr_download.php 

but why, every time run script, it's sent me error message : /bin/sh: 0: command not found

can me guys?

thanks

what /web/conf/ ? missing executable command here... did want wget ?

if want use php executable instead, executable is. eg /usr/sbin/php

then do

0 0 * * * /usr/sbin/php -f /home/content/81/10928381/html/dumper/work/backup/pr_download.php 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -