oleddisplayinfo29
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 0
Dear Sir,
cron jobs are not at all working for my account.
I have gone through all forum posts and used the following code
/usr/bin/php /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1
or
/usr/bin/php /home/oledinfo/public_html/oled/Test.php
This did not work
php-cron /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1
or
php-cron /home/oledinfo/public_html/oled/Test.php
did not work
I have got the following code in Test.php
<?php
echo "This is a test";
$headers = 'From: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'Reply-To: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$sent = mail( 'emailer123@yahoo.com', 'OLED-Info--Subject of this email is-that cron is working', 'The message is', $headers ) ;
if( sent ){
echo "Sent email\n";
} else {
echo "Problem sending email\n";
}
?>
Please suggest help and kindly enable my cron job feature.
Regards,
OInfo.
cron jobs are not at all working for my account.
I have gone through all forum posts and used the following code
/usr/bin/php /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1
or
/usr/bin/php /home/oledinfo/public_html/oled/Test.php
This did not work
php-cron /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1
or
php-cron /home/oledinfo/public_html/oled/Test.php
did not work
I have got the following code in Test.php
<?php
echo "This is a test";
$headers = 'From: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'Reply-To: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$sent = mail( 'emailer123@yahoo.com', 'OLED-Info--Subject of this email is-that cron is working', 'The message is', $headers ) ;
if( sent ){
echo "Sent email\n";
} else {
echo "Problem sending email\n";
}
?>
Please suggest help and kindly enable my cron job feature.
Regards,
OInfo.