Want to output variable contents in htm file from php file,

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
camarosource
Forum Commoner
Posts: 77
Joined: Sat Aug 03, 2002 10:43 pm

Want to output variable contents in htm file from php file,

Post by camarosource »

I have a PHP file. No MYSQL database. I'd like to have it open an .htm file and output the results in the php file to the .htm template.

So, for example say there is a bunch of variables called:

$make
$model
$year

I want to open a .htm file and output the contents of $make, $model & $year in the htm format using variables in the htm itself. ie. {make} {model} {year} and it would import the contents of each into the corresponding tag.

How can this be achieved?

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

templates are what you're looking for.
Have a read of http://www.devnetwork.net/forums/viewtopic.php?t=10077
Post Reply