I have this config.php file in a folder "data" in the same directory as public_html
Here is my index.php
Where is my error?
Newbie here...
PHP Code:
<?php
//config.php
$host = "domain.name"; //your domain name
$port = 2082;
$path = "/frontend/x2/mail/doaddpop.html"; //change x2 to your theme.
$cpaneluser = "Cpanel Username";
$cpanelpass = "Cpanel Password";
$authstr = "$cpaneluser:$cpanelpass";
// Server local variables
$data ="/home/host2xar/data"; //include $data."/config.php";
// Defines local variables
$server_inc = $_SERVER["DOCUMENT_ROOT"]."/inc";
$server = $_SERVER["DOCUMENT_ROOT"]."/"; //include $server."index.php";
?>
PHP Code:
<?php
//index.php
include $data."/config.php";
include $server."setup.php";
include $data."/header.php";
include $data."/right.php";
include $server."content.php";
include $data."/footer.php";
?>
PHP Code:
Warning: main(/config.php): failed to open stream: No such file or directory in /home/host2xar/public_html/index.php on line 2
Newbie here...
Comment