mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:47

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: 24 Aug 2004, 11:43 
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. :wink:


Report this post
Top
  
Reply with quote  
 Post subject: Ok, I got it...
PostPosted: 24 Aug 2004, 14:03 
Google is your friend... :D

I used:
Code:
include_once($_SERVER['DOCUMENT_ROOT']."/login/slogin_lib.inc.php");


Report this post
Top
  
Reply with quote  
 Post subject: Good you found it...!
PostPosted: 24 Aug 2004, 18:13 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
Meek:

> I used: include_once
> ($_SERVER['DOCUMENT_ROOT'].
> "/login/slogin_lib.inc.php");


Good you find the answer!

I'll add this as a tip for the next release. :wink:


Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group