.Darkman Posted April 26, 2007 Share Posted April 26, 2007 Hello everybody, I need some help. I'd like to know how to extract a tag from an URL. For eg, If i enter the URL I'd like the EMBED tag from the page to be extracted. How do i do it ? Thanks, Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/ Share on other sites More sharing options...
witakr Posted April 26, 2007 Share Posted April 26, 2007 You are wanting your website to connect to another website, view the soucre, locate the EMBED tag, then save it to a var for you to use? Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238870 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 Yes. I know this can be done in PHP. But just don't know how. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238871 Share on other sites More sharing options...
boo_lolly Posted April 26, 2007 Share Posted April 26, 2007 use curl and regex Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238872 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 I to extract the query string. But what i want is get the embed tag from the source. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238873 Share on other sites More sharing options...
witakr Posted April 26, 2007 Share Posted April 26, 2007 do you want this to happen automatically? or when you specify a URL to the page you wish to crack? Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238874 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 (i.) I will input the URL and the embed tag will be stored in a Variable. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238875 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 use curl and regex Can you explain this to me with an example ? Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-238879 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 Bump ? Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-239011 Share on other sites More sharing options...
boo_lolly Posted April 26, 2007 Share Posted April 26, 2007 click the links... they will explain... use google. THEN ask questions. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-239144 Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 I usually understand most functions when i read about them on the manual. But this is really confusing. Thats the reason i am asking. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-239153 Share on other sites More sharing options...
boo_lolly Posted April 26, 2007 Share Posted April 26, 2007 you can use curl to retrieve data from another site. you can use regex to search that data for an <embeded> tag. Link to comment https://forums.phpfreaks.com/topic/48737-finding-a-tag/#findComment-239175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.