sorry but idont understand your question.. maybe you want to output html tags in php statement like this? echo "<h1>Hello World</h1>";
No, I mean I'm doing a form where the articles are added, so after the articles are in my BD, I need to create a HTML file with the name of the article. For example: If my article calls: how to lose weight I want to create a HTML page call "how-to-lose-weight.html"
$f = fopen('how-to-lose-weight.html', 'w'); fwrite($f, "YOUR HTML CONTENT HERE"); fclose($f); Article on it http://www.apitalk.com/document.php?id=1184208074_5 Besides if you think the dynamic contents driven sites on net are writing html files, then you might be doing wrong, because it is the SEO (Search Engine Optimization) they do for pointng certain script. The urls seeem html files but actually they are not, they ar just pointers. For example: http://www.mysite.com/article-my-new-laptop.html is basically (behind) http://www.mysite.com/article.php?id=my-new-laptop I hope it helps.