Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Parse error: syntax error, unexpected T_STRING in /home/a8791534/public_htm

Parse error: syntax error, unexpected T_STRING in /home/a8791534/public_html/index.html on line 1

that's the error i get after i uploaded my iweb created site, via ftp, to web hosting site. what does it mean and how do i resolve it?

i appreciate the help.

cheers,
ssameer

Message was edited by: teklife

macbook 2.1, Mac OS X (10.5.8)

Posted on Sep 23, 2009 1:14 AM

Reply
11 replies

Sep 23, 2009 1:32 AM in response to teklife

teklife wrote:
i uploaded my iweb created site, via ftp, to web hosting site.

ssameer ~ It may be useful to indicate whether you used iWeb's built-in FTP app or another one. If you're using another one, indicate the name of the FTP app and confirm that you correctly uploaded both the Index folder and the folder(s) named as your site.

Also, you can see the source of the page Safari is trying to load by clicking on the View menu in Safari and choosing +View Source+.

User uploaded file

Sep 23, 2009 1:44 AM in response to Alancito

thanks for your help alancito. here's the web address
http://eatingupthefoodchain.com/

and here it is on my laptops own server, if you want to see the source code on there. this is my first site, and it's just a rough draft, bang out job. really just an experiment to learn to make a website. it seems getting itonto a host server is a bit more complicated. anyway, here it is on my machine, which runs apache 2.2 just like the host server i'm trying to get it on.
http://64.131.180.177

Oct 12, 2009 6:31 AM in response to Dan Parnell

This is a PHP error caused by a PHP script you're using. This isn't the fault of iWeb but rather whatever PHP script you have embedded in the page.


iWeb sites don't normally have php scripts in them. The problem is almost always caused by server settings as mentioned in the earlier post to this thread:

http://homepage.mac.com/thgewecke/parsingerror.html

Dec 12, 2009 9:38 AM in response to teklife

I also had that same error when I created my podcast using Garage Band and iWeb. Though everything seemed correct, I couldn't get the web pages to show up on my site. So, after some troubleshooting, I discovered that removing this line

<?xml version="1.0" encoding="UTF-8"?>

from all iWeb documents solved my problem. That line appears in several documents that iWeb creates. The easiest way I found to get rid of it was using BBEdit. It can do a global search in all documents in the folder created by iWeb.

I'm also going to talk with the syst analyst at my server side. From what I've read, it appears the error is on the server side.

Hope this helps.

Parse error: syntax error, unexpected T_STRING in /home/a8791534/public_htm

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.