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.
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.
{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;
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.
you should be able to do something like this:
/home/simple/public_html/hello/test.php:
Hope this helps.Code:<?php require('/home/simple/public_html/forum/SSI.php'); /* REST OF CODE HERE */ ?>
"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
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.
No, leave it where it is in the forum folder.
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:Would this work
Putting two dots infront of the "/home"? Thanks.Code:<?php require("../home/athletes/public_html/forum/SSI.php"); ?>
Hope this helps.Code:<?php require('/home/athletes/public_html/forum/SSI.php'); /* REST OF CODE */ ?>
"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