Results 1 to 6 of 6

Thread: SSI locating

  1. #1
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SSI locating

    In SMF forum to show the statistics, how can I locate to it if I am in a folder in the public_html. "<?php require("/path/to/forum/SSI.php"); ?>"

    Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, however, mine is quite simple, just I don't know what to put. Let's say I am in a folder called "hello" and that folder is within public_html. How would I link to home/simple/public_html/forum/SSI.php inside the "hello" folder. I tried the absoulute URL, however, it did not work. Thanks.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    you should be able to do something like this:

    /home/simple/public_html/hello/test.php:

    Code:
    <?php
     require('/home/simple/public_html/forum/SSI.php');
    
    /* REST OF CODE HERE */
    
    ?>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So I should save the SSI.php in the "hello" folder? Would this work " <?php require("../home/athletes/public_html/forum/SSI.php"); ?>" Putting two dots infront of the "/home"? Thanks.

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by afe View Post
    So I should save the SSI.php in the "hello" folder?
    No, leave it where it is in the forum folder.

    Would this work
    Code:
    <?php require("../home/athletes/public_html/forum/SSI.php"); ?>
    Putting two dots infront of the "/home"? Thanks.
    No, /home/ is the root directory on the server that has all the users on that server. /home/athletes/ is your main directory that has such folders as public_html (your web directory), maybe a cgi-bin, perhaps a statistics folder (all of this depends on your web host and how they have the server set up). So, if you have a file located in /home/athletes/public_html/hello/index.php, you would place in that file the following:

    Code:
    <?php
     require('/home/athletes/public_html/forum/SSI.php');
    /* REST OF CODE */
    ?>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

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