http://www.fixoyun.com/cinli-zuma.html
bu linkteki gibi oyunu indir dedigimiz zaman sayfayı bilgisayara nasıl kaydettirebiliriz?
php ile sayfa kaydetmek
6
●1.713
- 22-03-2010, 18:39:32Kimlik doğrulama veya yönetimden onay bekliyor.BHCoder adlı üyeden alıntı: mesajı görüntüle
++rep
---
http://www.kodaman.org/yazi/php-ile-...download-nasil - 22-03-2010, 19:32:50by_grafitus adlı üyeden alıntı: mesajı görüntüle
- 22-03-2010, 19:42:40
function PageURL(){ $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; }
Sayfanın url'sini veren fonksiyon. Fakat url adresi olarak nasıl indirileceği konusunda bir şey bulamadım. - 23-03-2010, 00:04:02sanırım istediğin şey bu.
<?php header ("Content-transfer-encoding: binary"); header ("Content-Type: application/octet-stream"); header ("Content-Disposition: attachment; filename=\"kisayol.url\""); header ("Pragma: public"); header ("Expires: 0"); header ("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header ("Cache-Control: private"); echo "[InternetShortcut] URL=http://www.siten.com/ "; ?>