ukferret Posted March 26, 2007 Share Posted March 26, 2007 Can I use curl to get the contents of a div tag from a remote page?? Basically I want to say goto www.awebsite.com/page.html and gather all of the info in a div say <div id="mydiv">Content I want</div> Link to comment https://forums.phpfreaks.com/topic/44350-curl-help/ Share on other sites More sharing options...
per1os Posted March 26, 2007 Share Posted March 26, 2007 You can use curl or maybe file_get_conents() would suit you better. IE: $file = file_get_conents("http://www.somesite.com/remot.php"); $file = '<div id="mydiv">' . $file . '</div>'; Link to comment https://forums.phpfreaks.com/topic/44350-curl-help/#findComment-215384 Share on other sites More sharing options...
ukferret Posted March 26, 2007 Author Share Posted March 26, 2007 OK great I will go and check that out Link to comment https://forums.phpfreaks.com/topic/44350-curl-help/#findComment-215387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.