Help-Document_ROOT

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

    Help-Document_ROOT

    Hi friends,
    i'm confuse about this tag -> /home/wapgam/public_html

    1. How can i create tag: wapgam/public_html?
    I think it should be public_html/wapgam ... Help. How to create this in my host root.

    Thanks.

    #2
    Im guessing u want full path to a file?
    PHP Code:
    realpath(dirname(__FILE__)) 

    Comment


      #3
      Nope bro,
      like this:

      $GLOBALS['_SERVER']['DOCUMENT_ROOT'] = "/home/wapgam/public_html";

      Comment


        #4
        Originally posted by puge View Post
        Nope bro,
        like this:

        $GLOBALS['_SERVER']['DOCUMENT_ROOT'] = "/home/wapgam/public_html";
        so wats d problem

        Comment


          #5
          Originally posted by puge View Post
          public_html/wapgam
          This is impossible because wapgam is the name/username to your cpanel that's the name your host use to identify your account on their server and you shouldn't post it in forums
          libra.wen.ru

          Comment


            #6
            The problem is that. How can i create a root on my host like: home/wapgem/public_html? ... E.g: public_html is a root.

            Friend, thank but wapgem is unknown to me, just for example.

            Comment


              #7
              thats impossible, i think you want a redirect to your wapgem.

              Comment


                #8
                /home/wapgam/public_html/
                If you have wapgam folder then the path is
                /home/wapgam/public_html/wapgam/

                /home/USERNAME/public_html/FOLDER/
                Did I help you?
                You can help me too
                Your donations will help me finance my studies.

                Comment


                  #9
                  Thank kei_ki7, you enlite me abit. I got it, thank to others contributors.

                  Comment


                    #10
                    When u r in /public_html/'s index.php this super global
                    PHP Code:
                    $_SERVER['DOCUMENT_ROOT'
                    ... looks like:
                    /home/something/public_html/
                    and when u r in /wapgam/'s index.php it looks like:
                    /home/something/public_html/wapgam/
                    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                    Comment

                    Working...
                    X