Jump to content

[SOLVED] cronjob help?


darkfreaks

Recommended Posts

ok i have never done anything wiith cronjob before. the cronjob wont execute  right.tpl.

 

here is the full path:

 

/home/soutlnet/public_html/main/right.tpl

 

it is not executing the file and in the file i put a query :

 

<?php

$result[0]= mysql_query("DELETE todayview FROM videos");
?>

 

is there something that is causing it not to execute the cron ???

Link to comment
https://forums.phpfreaks.com/topic/109640-solved-cronjob-help/
Share on other sites

ok i have never done anything wiith cronjob before. the cronjob wont execute  right.tpl.

 

here is the full path:

 

/home/soutlnet/public_html/main/right.tpl

 

it is not executing the file and in the file i put a query :

 

<?php

$result[0]= mysql_query("DELETE todayview FROM videos");
?>

 

is there something that is causing it not to execute the cron ???

Is that all that's in the file? if so, you're missing the part where it executes it.

adding

if ($result[0]){
//do something
}
[code]
or something like that. If you do execute it, and we just aren't seeing it, sry.

[/code]

Link to comment
https://forums.phpfreaks.com/topic/109640-solved-cronjob-help/#findComment-562538
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.