display domain code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    display domain code?

    Is thr any code to display domain/url on a page from which it is accessed?

    #2
    Try $_SERVER['HTTP_REFERER']
    mysterio.al - programming is a functional art

    Comment


      #3
      Thank u but this workd
      <?php
      echo $_SERVER['SERVER_NAME'];
      ?>
      Last edited by suael; 22.02.11, 13:15.

      Comment


        #4
        Could anyone give me the code to display domain/url on .htaccess?

        Comment


          #5
          Originally posted by suael View Post
          Could anyone give me the code to display domain/url on .htaccess?
          There is not such thing.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            PHP Code:
            <?php
            $hostname 
            $_SERVER['SERVER_NAME']; 
            $hostname str_replace('www.'''$hostname); 

            echo 
            "The domain: <B>".$hostname."</B> is Under Construction";
            ?>

            domain.com

            If www,domain.com it will be domain.com
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment

            Working...
            X