I've installed xampp and i've been able to view files without any problems.
I just created new php and html files and now I can't view home page in my browser.
These are the files i have currently:
In htdocs i have:
index.php (this is the home page)
includes folder which contains:
header.html
footer.html
layout.css
confic.inc.php
All of the script has been copied from a text book so I know that the code is correct.
This is the code for index.php:
<?php index.php
// This is the main page for the site.
// Include the configuration file for error management.
require_once ('./includes/config.inc.php');
// Set the page title and include the HTML header.
$page_title = 'Title';
include ('./includes/header.html');
The error shown in the browser is:
Parse error: syntax error, unexpected T_REQUIRE_ONCE in C:\xampp\htdocs\index.php on line 5
I can't see what is wrong, any ideas?