I have a subdomain with SSL: secure.domain.net
which is actually appears in a form of sub-directory when viewed via FTP environment, i.e. /secure.domain.net
I'm trying to hit a file, login.php which is currently residing on the root level via link from index.php, which is also on the root level.
Here's how the code looks:
index.php
<?
include("include/config.php");
$pagetitle = "test";
include("include/header.php");
?>
<a href="<? echo $https ?>/login.php">login</a>
[/COLOR]
include/config.php
<?
$https = "https://secure.domain.net";
?>
I need to be in a secure environment when I het to login.php file. Currently I'm getting there but with the following errors:
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/include/config.php) is not within the allowed path(s): (/var/www/domains/domain.net) in /var/www/domains/domain.net/login.php on line 2
Warning: main(include/config.php) [function.main]: failed to create stream: Operation not permitted in /var/www/domains/domain.net/login.php on line 2
Warning: main() [function.main]: Failed opening 'include/config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/domains/domain.net/login.php on line 2
What am I doing wrong?