PDA

View Full Version : Include Question?


j3sus
01-17-2009, 02:45 PM
Alright well I have my website http://kateo.net/ and I got a usersystem and started to make it my own and on my template there is

<?php
include '../vars.php';
echo $somevars;
?>

That was when I was using:

http://kateo.net/account/

But now I want to use:

http://account.kateo.net/

When I go to it though the variables do not show...

UnlimitedMB
01-17-2009, 04:15 PM
You cannot access files outside the web root folder.

on http://kateo.net/account/ you can access ../vars.php because the root is http://kateo.net/

On http://account.kateo.net/ the root is http://account.kateo.net/ and ../vars.php is below the root and not allowed.

edu
02-06-2009, 03:56 AM
also for security purposes i would use require(); over include