Thanks for this mod! I love it. I can make pages on my main site that requires users to be logged in, and even better: the coding is really easy to understand, no 3490859345 lines of coding that confuses the hell outa me.
Works perfectly on my site ^^
Quote:
Originally Posted by Cface
I thought i'd throw out there that i'm getting the old "no such file or directory" error for
PHP Code:
<?php $curdir = getcwd (); chdir('/forum'); require_once('/forum/global.php'); chdir ($curdir); ?> // also tried require_once('/global.php');
which does exist... I've also tried with full url
PHP Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/wonderna/public_html/index.php on line 3
Warning: require_once(/global.php) [function.require-once]: failed to open stream: No such file or directory in /home/wonderna/public_html/index.php on line 4
Fatal error: require_once() [function.require]: Failed opening required '/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wonderna/public_html/index.php on line 4
EDIT: nevermind got it fixed, i'm such a dumbass :P
|
I got the same thing first too, but you need to put the full path to your forum, not just /forums/.
So /home/username/public_html/forums/ for an example. It will work