Hi all,
I have setup a cron job via my Control panel. I have uploaded the script via my FTP, set up it's permission as 777 (is it safe to do so?) & gave the path to this script in the job. Now the script makes use of dependent scripts to be able to run the job. Confusing? Here's what it's like:
cron.php
<?php require("some_file1.php");
require("file1.php");
require("folder1/file1.php");
require("folder1/file2.php");
require("folder2/file1.php");
//This value is actually received from one of the require files above after come calculations
$get_content = 'This is some value received after calculations.';
mail('Hi', '[email protected]', $get_content, 'Error');
?>
I have opted to receive Confirmation of the Cron job to my email & here's the error that I received:
mydomain.com/cron.php: line 1: syntax error near unexpected token `('
mydomain.com/cron.php: line 1: `<?php require("some_file1.php");
'
I tried talking to the support but they don't have any idea of this technical detail & currently the technical guys are not available. It will be great if someone can help me out here.
Looking forward for your replies.
Thank you.