You are here: Newbie: PHP output within HTML page « All PHP « IT news, forums, messages
Newbie: PHP output within HTML page

Posted by nospam on 08/08/07 18:00

Hello,

Sorry for the newbie question. I am trying to add some dynamic content to
an existing HTML page. I would like to add a random saying to an area of a
HTML doc. Sort of like a "fortune" - that would display a different fortune
every minute.

I figure that I can write a PHP script to select a random fortune from a
file, but how do I embed that text within a HTML doc.I want to keep the HTML
document just as it is now but add this php text. I don't want to rename
MyHtml.html to MyHtml.php which I can do now.

Is there a way to execute a external php script from within an HTML and have
its return value displayed in the HTML?

Thanks in advance,
bruce

 

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

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