I want to download a file from a href
attribute that is extracted from the XPath using PHP
elements = FileOpen.aspx?Type=14&ID=2157&Inline=True
which is extracted from XPath. I want to download this file automatically in PHP
$elements = $xpath->evaluate('string(//tr[@id ="ContentPlaceholder1_trMeetingDetail"]/td[@id="ContentPlaceholder1_tdMainContent"]/div[@id="ContentPlaceholder1_pnlDownloads"]/a[@id="ContentPlaceholder1_hlPublicAgendaFile"]/@href)');