You are here: embedded HTML in php code with 5.1.1 « PHP Programming Language « IT news, forums, messages
embedded HTML in php code with 5.1.1

Posted by Bob Marley on 01/12/06 03:32

would anyone please tell me why this code works in 4.X, 5.0.X and not in
5.1?

<?php
function myfunction(){

*** php code ***
?>
<a href="bla.bla">bla</a>
<?
*** php code ***

}

?>

when i run it under 5.1 i get the error "Parse error: syntax error,
unexpected $end in" on the last line of the file. i drop the embedded
html and it works fine.

i know doing it this way is kinda sloppy and on my list of things to
fix, but that can't be done right now. is there some setting in 5.1
where i can turn this back on or do i have to downgrade to 5.0 again.

thanks
willie

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация