Re: Upgraded PHP now website doesn't work properly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> Hi,
> 
> 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 192.168.1.110] PHP Parse 
> error:  syntax error, unexpected T_STRING, expecting ',' or ';' in 
> /home/optiplex-networks/links.php on line 20, referer: 
> http://co111w.col111.mail.live.com/mail/InboxLight.aspx?n=454360575
> 
> 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 ('./header.inc');
> ?>
> 
> <?php
> 
> ini_set('display_errors',1);
> error_reporting(E_ALL|E_STRICT);
> 
> 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>
> </table>
> 
> <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">
>   <tr>
> 
>     <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>
>   </tr>
> 
> 
> 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,
> 
> Kaya
> 


I also forgot to mention, it's worth getting an editor that comes with
syntax highlighting, as this would have shown you the problem right
away.

Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux