<?php include 'simple_html_dom.php'; if(isset($_GET['date'])) { $url = 'http://10.8.32.20/Default.aspx?Menu=' . $_GET['date']; } $html = file_get_html('http://localhost:81/curl/thu.php'); // echo ($html); //foreach($html->find('td[align="right]') as $e) // echo $e->innertext . '<br>'; //echo $html->find('td[align="right"]', 1)->plaintext.'<br><hr>'; echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; foreach($html->find('div#grid') as $e) echo $e->innertext . '<br>'; ?>
HtmlWeb web = new HtmlWeb(); HtmlDocument doc = web.Load(url); var liOfTravels = doc.DocumentNode.SelectSingleNode("//div[@id='myTrips']") .SelectNodes(".//li");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)