.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, Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted April 26, 2007 Share Posted April 26, 2007 use curl and regex Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 ? Quote Link to comment Share on other sites More sharing options...
.Darkman Posted April 26, 2007 Author Share Posted April 26, 2007 Bump ? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.