Archive   RSS   (Login)

まぁそのまんま備忘録で

Category: スポンサー広告
スポンサーサイト
上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

Category: 未分類
rss importer pligg

How to setup Cron Job for Pligg Rss Importer Module
Nirajan Bom Malla March 30, 2011 How To

If are using Pligg Rss Importer Module for your pligg site , you should setup a cron job to automatically import latest updates.Let’s get started. Log in to your cPanel and look for the Cron Jobs icon:

cPanel Cron JobsClick on the image and you’ll be asked to choose your experience level. If you’re reading this, you want to click on Standard.
Creating a Cron Job

Now that you’re at the Standard Cron Manager, let’s create a cron job. You can set a job to run at a specific interval or at a specific times. Creating a cron job requires only few simple steps :

Cron job

Enter your email address where it says: Please enter an email address where the cron output will be sent. Cron will send you a message when the job is executed, so you’ll know if there are any errors.
In the Command to run: field, enter the full path to your script (you may need to check with your host for this).If you want to run a php file, the command will begin with php.

your path would look something like this:

php /home/[your username]/public_html/import.php

Now go to your cpanel file manager and create a new file named “import.php” in your root directory and Insert the following code there


if (strpos($_SERVER[‘SCRIPT_NAME’], ‘rss_import’) > 1){
die(‘you need to copy this file into your root Pligg folder.’);
}

include_once(‘Smarty.class.php’);
$main_smarty = new Smarty;

include_once(‘config.php’);
include_once(mnminclude.’html1.php’);
include_once(mnminclude.’link.php’);
include_once(mnminclude.’tags.php’);
include_once(mnminclude.’smartyvariables.php’);

include_once(‘modules/rss_import/rss_import_settings.php’);
include_once(‘modules/rss_import/rss_import_main.php’);

rss_import_do_import(false);

?>

And save .

Now you need to set the schedule.

Set the Minute(s). You can set a short interval here, or minutes of the hour (you can select multiple items in this—and the other— boxes by using the Shift and Command keys). If you don’t care about minutes, leave this set to ).If you want to test things, set this to run Every Five Minutes. This is a good interval for running the script, checking your email for errors, and changing settings before your inbox gets inundated with cron messages.
Set the Hour(s). If you’re creating a cron job to run RSS Import, you might want to set this to Every Hour. If you’re setting up a backup script, you might choose an hour in the middle of the night for nightly backups.
Set the Day(s). You’ll probably want to leave this set to Every Day, but you can also choose specific days of the month.
Set the Weekday(s).
Set the Month(s).

Read This : How To Setup Email in Asus Eee PC Series

When you’ve set the schedule, your cron job is done. Click the Save Crontab button. If you set it to a short interval for testing, you should have an email with your output within a few minutes. If there’s an error (usually a problem with your path), check your settings.

スポンサーサイト
04 | 05  (2016) | 06
SUN MON TUE WED THU FRI SAT
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 - - - -
最新コメント
最新トラックバック
プロフィール
QR

F

Author:F
 
携帯の方はこちら >>

上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。