Revision: 3698
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 2, 2007 20:34 by scriptmakingcom
Initial Code
<? $url = "oooff.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $curl_scraped_page = curl_exec($ch); curl_close($ch); echo $curl_scraped_page; ?> <?php $data = file_get_contents('http://search.msn.com/results.aspx?q=site%3Afroogle.com'); $regex = '/Page 1 of (.+?) results/'; preg_match($regex,$data,$match); var_dump($match); echo $match[1]; ?>
Initial URL
http://www.oooff.com/php-scripts/basic-curl-scraping-php/basic-scraping-with-curl.php
Initial Description
Initial Title
Basic PHP content grabber using CURL
Initial Tags
Initial Language
PHP