printing the http path to the root of my site?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • monomaniac21

    printing the http path to the root of my site?

    hi all

    print the http path to the root of my site?

    marc

  • Arjen

    #2
    Re: printing the http path to the root of my site?

    monomaniac21 wrote:
    hi all
    >
    print the http path to the root of my site?
    Properly configured it should be $_SERVER['DOCUMTENT_ROOT '];

    Ps ending a sentence with '?' doesn't automatically make it a question :-)

    Arjen

    Comment

    • Arjen

      #3
      Re: printing the http path to the root of my site?

      Arjen wrote:
      monomaniac21 wrote:
      >hi all
      >>
      >print the http path to the root of my site?
      Hey wait a minute .... it's a trick question :-)

      try this :-p

      echo "/";

      Arjen

      Comment

      • FFMG

        #4
        Re: printing the http path to the root of my site?


        monomaniac21;78 201 Wrote:
        hi all
        >
        print the http path to the root of my site?
        >
        marc
        Not sure if this is what you are asking, but look at the $_SERVER
        values.

        var_dump( $_SERVER );

        FFMG


        --

        'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
        (http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
        (http://www.insurance-owl.com/other/car_rec.php)
        'Free URL redirection service' (http://urlkick.com/)
        ------------------------------------------------------------------------
        FFMG's Profile: http://www.httppoint.com/member.php?userid=580
        View this thread: http://www.httppoint.com/showthread.php?t=17799

        Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

        Comment

        Working...