AsgarothBelem
New Member
- Messages
- 9
- Reaction score
- 0
- Points
- 0
I dont know what im doing wrong but im getting this errors as mail
/home/asgaroth/public_html/crontest.php: line 1: ?php: No such file or directory
/home/asgaroth/public_html/crontest.php: line 3: syntax error near unexpected token `('
/home/asgaroth/public_html/crontest.php: line 3: ` $oConn = mysql_connect("localhost","XXXX","XXXX")or die("Connection to the server failed");'
the script im trying to run is:
php-cron /home/asgaroth/public_html/crontest.php
and it just contains:
<?php
$oConn = mysql_connect("localhost","XXXX","XXXX")or die("Connection to the server failed");
mysql_select_db("asgaroth_twvcs")or die("No such database exist ".$this->dbName);
mysql_query("INSERT INTO test VALUES (0);",$oConn) or die("There is error in the sql query: ".$sql);
?>
what should i do to fix that? can anyone help me plz?
/home/asgaroth/public_html/crontest.php: line 1: ?php: No such file or directory
/home/asgaroth/public_html/crontest.php: line 3: syntax error near unexpected token `('
/home/asgaroth/public_html/crontest.php: line 3: ` $oConn = mysql_connect("localhost","XXXX","XXXX")or die("Connection to the server failed");'
the script im trying to run is:
php-cron /home/asgaroth/public_html/crontest.php
and it just contains:
<?php
$oConn = mysql_connect("localhost","XXXX","XXXX")or die("Connection to the server failed");
mysql_select_db("asgaroth_twvcs")or die("No such database exist ".$this->dbName);
mysql_query("INSERT INTO test VALUES (0);",$oConn) or die("There is error in the sql query: ".$sql);
?>
what should i do to fix that? can anyone help me plz?