MDanz Posted September 24, 2009 Share Posted September 24, 2009 i've fetched a webpage with curl.. and have the <title><head> etc how do i echo whats in these tags.. so they appear like 'RealGM: Sports Is Our Business' without the tags? <title>RealGM: Sports Is Our Business</title> <meta name="description" content="Real GM"> <meta name="keywords" content="trade checker, draft simulator, nba, simulator, nba news, nba trades, wiretap, nba transactions, nba draft, nba salaries, basketball, rumors, sports, jordan, hill, carter, shaq, mcgrady, kobe, duncan, kidd, garnett, payton, lebron, carmelo, wade, bosh, hawks, celtics, hornets, bulls, cavs, mavericks, nuggets, pistons, warriors, rockets, pacers, lakers, clippers, heat, bucks, timberwolves, nets, knicks, magic, trailblazers, suns, kings, supersonics, spurs, raptors, jazz, grizzlies, wizards, collective bargaining agreement, trade, sign, free agent, renounce, waive, realgm, general manager, gm"> <meta NAME="description" CONTENT="The only site on the web that allows you to sign, trade, waive, and renouce players from NBA teams. Come along and see what it is like to be a GM of a NBA team. All based on the real rules that the big boys must play by."> <meta http-equiv="Content-Style-Type" content="text/css"> btw are all websites built like this with keywords, description, title? Link to comment https://forums.phpfreaks.com/topic/175392-help-echoing-whats-inside-tags/ Share on other sites More sharing options...
MDanz Posted September 24, 2009 Author Share Posted September 24, 2009 lol ok i just realised it strip tags to get rid of tags.. how do i take echo specifically one part?.. like the title Link to comment https://forums.phpfreaks.com/topic/175392-help-echoing-whats-inside-tags/#findComment-924259 Share on other sites More sharing options...
khr2003 Posted September 24, 2009 Share Posted September 24, 2009 use regexp or explode. Both ways are somewhat hard to implement in a large page but they get the job done. Link to comment https://forums.phpfreaks.com/topic/175392-help-echoing-whats-inside-tags/#findComment-924473 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.