I add this in the top of every page where I use this login script:
Code:
<?php
session_start();
$slogin_noauthpage = 0;
$slogin_pagetitle = "Name of page";
include_once ("slogin_lib.inc.php");
?>
Now, I keep all the login script files in a folder named 'login' so how do I change this path:
Code:
include_once ("slogin_lib.inc.php");
if the page is located in the root outside the 'login' folder?
I have tried
Code:
include_once ("/login/slogin_lib.inc.php");
but it doesn't seem to work. Yeah, I'm a newbie to php but I'm trying...
Thanks in advance.