Public feed #914670

Anonymous

public text v1 · immutable
Raw Edit
·published 2008-02-23 02:03 UTC
rendered paste body
index.php:

<?php
    // Include Config File
    require ('config/config.php');

    require $headerFileLocation
    or die("Unable to open header file.");

?>


config.php:

<?php

	$headerFileLocation = '/source/header.php';
?>

Errors:

Warning: require(1) [function.require]: failed to open stream: No such file or directory in G:\Program Files (x86)\Xampp\htdocs\triflegaming\index.php on line 6

Fatal error: require() [function.require]: Failed opening required '1' (include_path='.;G:\Program Files (x86)\Xampp\php\pear\') in G:\Program Files (x86)\Xampp\htdocs\triflegaming\index.php on line 6