<?php
include 'config.php';
....
<?php
include_once 'config.php';
?>
<?php
$curpath = $_SERVER{'DOCUMENT_ROOT'}."/httpdocs/newsevents/";
$filename = $curpath."db.php";
if(file_exists($filename)){
include $filename;
} else {
die("Database error.");
}
$filename = $curpath."config.php";
if(file_exists($filename)){
include $filename;
} else {
die("Configuration error.");
}
$filename = $curpath."newslangmsg.php";
if(file_exists($filename)){
include $filename;
} else {
die("Language error.");
}
?>