| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| | | */
|
| | | require_once('../../lib/config.inc.php');
|
| | | require_once('../../lib/app.inc.php'); |
| | | require_once('../../lib/app.inc.php');
|
| | |
|
| | | //require_once('classes/class.crawler.php');
|
| | | $app->load('aps_crawler');
|
| | |
|
| | | if(!@ini_get('allow_url_fopen')) $app->error('allow_url_fopen is not enabled');
|
| | | if(!function_exists('curl_version')) $app->error('cURL is not available');
|
| | | if(!@ini_get('allow_url_fopen')) $app->error('allow_url_fopen is not enabled.');
|
| | | if(!function_exists('curl_version')) $app->error('The PHP CURL extension is not available.');
|
| | |
|
| | | $log_prefix = 'APS crawler cron: ';
|
| | |
|
| | |
| | | $time_start = microtime(true);
|
| | | $aps->startCrawler();
|
| | | $aps->parseFolderToDB();
|
| | | $aps->fixURLs();
|
| | | $time = microtime(true) - $time_start;
|
| | |
|
| | | $app->log($log_prefix.'Used mem at end: '.$aps->convertSize(memory_get_usage(true)));
|