كود PHP:
<?php
// Get a file into an array. In this example we'll go through HTTP to get
// the HTML source of a URL.
$lines = file('http://easytide.ukho.gov.uk/EASYTIDE/EasyTide/SelectPort.aspx/');
// Loop through our array, show HTML source as HTML source; and line numbers too.
foreach ($lines as $line_num => $line) {
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
}
// Another example, let's get a web page into a string. See also file_get_contents().
$html = implode('', file('http://www.qatifracing.net/dgnews/'));
?>
هذا الكود الذي قمت بعمله لداله
وكان الناتج
عند طلب الصفحه
كود:
Line #0 :
Line #1 : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line #2 : <HTML lang="en">
Line #3 : <HEAD>
Line #4 : <title>EasyTide - on-line tidal predictions from the UKHO</title>
Line #5 : <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
Line #6 : <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
Line #7 : <meta content="JavaScript" name="vs_defaultClientScript">
Line #8 : <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
Line #9 : <LINK href="Styles.css" type="text/css" rel="stylesheet">
Line #10 : </HEAD>
Line #11 : <body leftMargin="0" topMargin="0" stats=1>
Line #12 : <!-- Start of DeepMetrix (.NET) StatScript -->
Line #13 : <script language="javascript">
Line #14 :
Line #15 : var DMNETdomain = "";
Line #16 : var DMNETpage = window.location;
Line #17 : var DMNETversion = "86";
Line #18 : var DMNETsendTo = "//stats.ukho.gov.uk/dm.gif?";
Line #19 : var DMNETsession;
Line #20 :
نامل ممن لديه خبرة اعلامنا بالمطلوب