Code:
<?php
// create a new curl resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.llmtrafik.gov.my/showtraffic.aspx?hw=PNB");
// grab URL and pass it to the browser
curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
?>
I am using curl to grab the contents from url llmtrafik.gov.my/showtraffic.aspx?hw=PNB as an example.
Some of the contents (please ignore the images) especially under "Traffic Events" are not displayed by using curl script. Any idea? Please advice.
Thanks!!!
Last edited:





