Ashley Sheridan wrote:
On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote:


I am hoping someone can help me??

I currently run Fedora 11 on an Apple PowerMac G4 and recently performed an upgrade to it which rendered my site completely unsee able for a while but then after re-saving it showed up through my browsers however my menu bar was slightly altered probably due to lack of formatting.

Apache error logs claim this:

[Sun Jan 10 23:06:23 2010] [error] [client] PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/optiplex-networks/links.php on line 20, referer:

I have attempted to enable PHP debugging but nothing is being shown!

To give an idea of where things are going wrong this is the start of the file:

<?php # Script 3.4 - index.php

// Set the page title and include the HTML header.
$page_title = 'Optiplex Networks';
include ('./');



echo '

<table width="100%" align="center" border="0" bgcolor="#CCCCCC">
<tr><td align="center"><font size="4"><strong>Contributors to Optiplex Networks:</strong></font></td></tr>

<p>If it weren't for these projects Optiplex Networks would not have happened. My thanks and regards to everyone involved!</p>

<table width="95%" border="1" align="center">

<td width="15%"><div align="center" class="style2"><strong>Name</strong></div></td> <td width="20%"><div align="center" class="style2"><strong>Address</strong></div></td> <td width="*"><div align="center" class="style2"><strong>Description</strong></div></td>

Line 20 is the line beginning with <p>If it weren't for.......

I don't understand why this should be an error as it's basic html!

The only php part I have used is just echoing the html out.

As shown the echo ' is closed off at the bottom of the file with:



which is fine according the book I read about php.

Obviously something is wrong but I can't figure it out, if anyone can give me a hand I'd very much appreciate it!

Many thanks,


The main issue I can see is that the single quote string delimiter that
you're using is also being used in the HTML text! Have you considered
using heredoc syntax instead?

echo <<<OUTPUT

your html goes here


The only thing to watch out for here is that the OUTPUT; line is all on
it's own, and is preceeded with no whitespace at all. Also, the word
OUTPUT in this example can be whatever you feel like. The main advantage
ti heredoc is that you can use any quote characters you like within the
text and you can output any PHP variables in the text also as if you had
a double quoted string.


Yup, and the single quote shows up right in this line:

<p>If it weren't for these projects Optiplex Networks would not have

Ken Sande/KC8QNI

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to