Тема: Найти исполняемый файл
Есть код крона который парсит новости:
<?php
class Cron extends MY_Controller {
function Cron()
{
parent::MY_Controller();
}
function export()
{
$this->load->library('simplexml');
$to_export = $this->config->item('news');
foreach($to_export as $lenta_id=>$info) {
if($lenta_id != -1) {
if($lenta_id == 0) $link = 'http://site.ru/news/rss_export/';
else $link = "http://site.ru/news/rss_export/lenta/$lenta_id/";
if($xml = file_get_contents($link)) {
$parsed = $this->simplexml->xml_parse($xml);
foreach($parsed['channel']['item'] as $entry) {
$title = $entry['title'];
$text = stripslashes($entry['description']);
$created_on = strtotime($entry['pubDate']);
$array = array('created_on'=>$created_on,
'title'=>$title,
'text'=>$text,
'is_active'=>1,
'exported_from'=>$lenta_id,
'post_id'=>-1
);
if( ! $this->news_model->is_already_added($created_on, $lenta_id)) $this->news_model->add($array);
}
}
}
}
}
}не могу найти файл который в строке браузера нужно вызвать чтобы он выполнился. Как искать его, в этом фреймворке я дуб ![]()
