Results 1 to 1 of 1

Thread: php ile firefoxun adres barindan url almak

  1. Go to Thank YouDownload #1
    Go to Thank You
    Üye themisofgreek's Avatar

    Info

    Go to Top of Post

    Default php ile firefoxun adres barindan url almak

    Bilgisi olan ve yardimci olan arkadaslara php ile ilgili bir soru. Simdiden tesekkurler.
    Arkadaslar (ustalarim, hocalarim), Firefoxta bir siteyi actim. Ornegin [Sadece kayıtlı ve aktif kullanıcılar bağlantıları görebilir.] Kayıt Olmak İçin Tıklayınız... Simdi bu adresi php kodlama ile almak istiyorum ve bunu url degiskenine yazmak istiyorum. Daha sonrada bir dosyaya. Simdi bir tab daha actim ve oraya localhost/test.php yazdim. Ama sadece localhost geliyor. Oysa ben [Sadece kayıtlı ve aktif kullanıcılar bağlantıları görebilir.] Kayıt Olmak İçin Tıklayınız.. urlini almak istiyorum.
    Ornek kod

    <?php
    $filename= "geturlfromadresbar.txt"

    // Open the file for writing
    $fp = fopen($filename, 'w');

    $full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
    fwrite($fp,$full_url);
    fclose($fp);

    ?>

    Simdiden tesekkurler. Dizlayiciyi yazan hocam bu isi kesin bilir umarim yardimci olur.




Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •