generation from a template...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bowen6969
Forum Newbie
Posts: 2
Joined: Sun Dec 19, 2010 8:28 pm

generation from a template...

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: generation from a template...

Post 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).
“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
bowen6969
Forum Newbie
Posts: 2
Joined: Sun Dec 19, 2010 8:28 pm

Re: generation from a template...

Post 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
Post Reply