what is my Directory Location

Discussion in 'Site & Server Administration' started by spikescot2005, Oct 19, 2006.

  1. #1
    Hi i need to input the Directory Location in to install a file but im unsure what it is. i know the file is in /htdocs/video.

    They give the surgestion of i.e. /var/www/html/path or /home/mysoftwo/public_html

    any ideas
     
    spikescot2005, Oct 19, 2006 IP
  2. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #2
    hey here is the code ... just make php file upload it to the directory you want to find path and run it :D

    
    <?php
    $path = dirname(__FILE__)."/"; 
    $path = str_replace("\\", "/", $path);
    ?>
    <html>
    <head>
    <title>Find the path</title>
    </head>
    <body>
    <p>Directory path : </p>
    <pre><?php echo $path; ?></pre>
    </body>
    </html>
    
    Code (markup):
    Enjoy :D
     
    iatbm, Oct 19, 2006 IP
  3. spikescot2005

    spikescot2005 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no its a self installer that does it for you and uploads the mysql tables and that
     
    spikescot2005, Oct 19, 2006 IP
  4. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Do you need to type the exact path to your directory on the server somewhere in the installer ? ... If so then just use that script I posted and it will show you the exact path and you just copy/paste into installer and thats it ...
     
    iatbm, Oct 19, 2006 IP
  5. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #5
    I got your PM and answered. Like I posted this is the solution ... the code in the second post ;)
     
    iatbm, Oct 19, 2006 IP
  6. spikescot2005

    spikescot2005 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks it worked a treat now all i need to do is work out how to change the look so it fits in with my site.
     
    spikescot2005, Oct 20, 2006 IP