Φ bitir 2 Posted April 17, 2012 Share Posted April 17, 2012 Başka bir sitedeki bir sayfayı görüntülemenizi sağlar, genellikle hava durumu dolar kuru gibi bilgileri almak için kullanır function getHTML($host, $port, $url) { if(!($fp = fsockopen($host, $port))) { return -1; } fputs($fp, "GET " . $url . " HTTP/1.0\r\n\r\n"); while(!feof($fp)) { $result .= fread($fp, 128); } return $result; } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Примечание: Ваше сообщение будет проверено модератором перед отправкой.