Un esempio di curl? Questo:
http://www.binarymoon.co.uk/2010/04/...tent-web-page/
Ma ci sono infiniti modi di farlo, il succo comunque non cambia...
Ad esempio usando http://simplehtmldom.sourceforge.net/ basta scrivere
// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';
Per trovare immagini e link. Puoi usare cosa vuoi.![]()