Hi there, i need a script that open a txt file that will have a lot of urls one per line then open each url then automaticaly check the box and click a submit button and repeat this for all the urls on that file. tell me how much you want for this script?
$file = file_get_contents('file.txt'); $site_list = explode(PHP_EOL, $file); $post_values = array('checkboxname' => 'checkboxvalue', 'otherfieldsnames' => 'otherfeildsvalues'); foreach ($site_list as $siteURL) { $site_result = processWebsite($siteURL, $post_values); echo $site_result; } function processWebsite($url, $post_values) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST ,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_values); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $output = curl_exec($ch); curl_close($ch); return $output; } PHP: Assuming that the file has a URL at each line.