| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2005
Posts: 1,492
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Curl To Grab URLCode: <?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); ?> Some of the contents (please ignore the images) especially under "Traffic Events" are not displayed by using curl script. Any idea? Please advice. ![]() Thanks!!!
__________________ ||||newsiness.com||||'""|""\__,_ | _[lol]___[lol]____ l ||__|__|) |(@)(@)"""""""**|(@)(@)**|(@) 100% Free Online Flash games
Last edited by newsiness; 03-30-2008 at 03:08 AM.
|
| |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | it is populated by javascript. 1 disturbing thing I found was the following in the source as well:- Code: <script language="javascript">
var url = window.location.href;
if (url.indexOf('/showtraffic.aspx?') >= 0)
//alert(url.indexOf('/showtraffic.aspx?'))
else
document.getElementById('DataGrid2').outerHTML = "I want to f**k you! F**k you! :D";
</script> ????: NamePros.com http://www.namepros.com/programming/450950-curl-to-grab-url.html Should a government website have such things within it's source.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jul 2005
Posts: 1,492
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks for the note... Is it possible to display the contents?
__________________ ||||newsiness.com||||'""|""\__,_ | _[lol]___[lol]____ l ||__|__|) |(@)(@)"""""""**|(@)(@)**|(@) 100% Free Online Flash games |
| |
| | #4 (permalink) | ||||
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,556
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
PHP Code:
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists | ||||
| |
| | #5 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Did you actually read the thread or look on the page. The content he is after is displayed from javascript after the page loads.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft | ||||
| |