insert php output into static html file

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
vikramsharma
Forum Newbie
Posts: 1
Joined: Sat Sep 13, 2008 1:39 am

insert php output into static html file

Post by vikramsharma »

hi guys.
i want to know if there a way to insert php output as a table into static html file.
some sort of include.

php generates-> some table -> now insert this table into static index.html file.


my php code looks like this

Code: Select all

 
<td>
<a href="<?php echo $the_permalink;?>" target="_blank_"><?php echo $blog_title; ?></a>&nbsp;(
<?php echo $blog_date; ?>)&nbsp;:<br>
<?php echo $blog_content; ?>&nbsp; ..... <a href="<?php echo $the_permalink;?>" target="_blank_">read more</a>
</td>
 
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Re: insert php output into static html file

Post by Kadanis »

can't you just output your html + php variables into a string then write the string to the html file using fwrite()
Post Reply