Ever wanted to get some database content or server side scripting output onto
a plain old HTML (non-php) page?
I wrote a link database script in PHP that I wanted to share with other web
sites. But most of these web sites were written in HTML, not PHP. I discovered
on other peoples web sites.
All that is required is that your PHP script be on a server running PHP and
Anyone who wanted to use my database
of links just needed to place this script in their HTML where they wanted to
display the content:
My PHP script looked something like this:
// get data from database
// store formatted data into a variable
<!-- Hide from non JS enabled browsers
document.write('<?PHP echo $content; ?>');
//--> End Hide
That was it. I was surprised at how easy it was.
Hope it helps someone else.