hey guys, just wondering if you could help me with a problem im having regarding using a template, called with the php code include
heres the code im using:
<?php
include('index.html');
?>
and im getting this parse error:
Parse error: syntax error, unexpected T_STRING in /home/bowen69/public_html/index.html on line 1
if u wish to take a look heres my site
http://www.unhackable.co.uk/phptest.php
http://www.unhackable.co.uk/index.html
i would really appreciate the help. as you can tell, im very new to php.
Thanks
Bowen
generation from a template...
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: generation from a template...
The error is a syntax error in the php code. Visiting your pages won't help because the php code isn't displayed, you will have to paste that code here (remember to use the 'PHP Code' button if you do paste).
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: generation from a template...
lol doesnt matter now, i got it working. i had to delete the first line of code:
<?xml version="1.0" encoding="UTF-8"?>
lol i feel like a twat
thanks anyways though
Bowen
<?xml version="1.0" encoding="UTF-8"?>
lol i feel like a twat
thanks anyways though
Bowen