Results 1 to 8 of 8
Threaded View
-
22nd Nov 2011, 09:48 PM #1OPBannedWebsite's:
Seecure.me[PHP] Grab all img links from html/webpage
/*
For ibby
*/
PHP Code:<?
$request_url ='http://www.besthostingforums.com/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url); // The url to get links from
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // We want to get the respone
$result = curl_exec($ch);
$regex='|<img.*?src="(.*?)"|';
preg_match_all($regex,$result,$parts);
$links=$parts[1];
foreach($links as $link){
echo $link."<br>";
}
curl_close($ch);
?>
_Vick Reviewed by _Vick on . [PHP] Grab all img links from html/webpage /* For ibby */ <? $request_url ='http://www.besthostingforums.com/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); // The url to get links from curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // We want to get the respone Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
detect updates on a webpage and extract the file hoster links.
By Mitt281 in forum Web Application/Script SupportReplies: 0Last Post: 6th Nov 2012, 09:26 PM -
Webpage Image Links Finder
By Bright in forum Web Development AreaReplies: 12Last Post: 20th Feb 2012, 02:45 AM -
Hiding Your HTML Webpage Sourcecode from noobs
By soft2050 in forum Tutorials and GuidesReplies: 17Last Post: 13th Jun 2011, 06:09 PM -
Is there a way to just grab the File name only off FS Links?
By The90sKid in forum Technical Help Desk SupportReplies: 6Last Post: 1st Jan 2011, 10:23 AM -
CSS/HTML Help - Auto-size webpage to fit any screen?
By iL < in forum Technical Help Desk SupportReplies: 0Last Post: 17th Nov 2009, 04:10 AM
themaCreator - create posts from...
Version 3.48 released. Open older version (or...