Page 1 of 1

generation from a template...

Posted: Sun Dec 19, 2010 8:47 pm
by bowen6969
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

Re: generation from a template...

Posted: Mon Dec 20, 2010 9:57 am
by social_experiment
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).

Re: generation from a template...

Posted: Mon Dec 20, 2010 12:39 pm
by bowen6969
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 :D

thanks anyways though

Bowen