<?php
//example of a PHP script, which can be
//run from cron and update/check list of proxies
chdir(preg_replace("|/[^/]+$|", '', $argv[0]));
require_once('Proxier.class.php');
$config = array(
'do_connect_to_db'=>true,
'db_host'=>'localhost',
'db_name'=>'mydb',
'db_login'=>'mylogin',
'db_password'=>'password',
'db_table'=>'proxies',
'test_page_path'=>'/home/user/public_html/proxytest.txt',
'test_page_url'=>'http://mysite.com/proxytest.txt',
);
$Proxier =& new Proxier(1, $config);
?>
|