Umm, what do you mean? PHP code can't be HTML, they are different languages. Do you mean that you want to display code snippets on a website of PHP code, and you need to be able to display it without it executing?
I also have that problem, If you really want to convert it..try to decode it manually using dreamweaver.
Did you mean PHP code output to HTML? If so, the answer is YES. You can convert the output of php code to html in this way: $string = file_get_contents('http://yourdomain/yourphpfile.php'); // you can also use the absolute filename or even traverse the entire directory of your php scripts. NOTE: If you are using an absolute filename as parameter you might be converting you php code to html code by code and not the output file_put_contents('yourhtmlfile.html', $string); PHP:
php outputs html by itself.. its not possible to change php codings into html atleast the functions part
It is possible to change the php codings into html using the highlight_* families if you want to convert string php code use highlight_string and if it is file use highlight_file
lol, NO, but if your asking for a .php file into a .html then... <?php $oldFile = $_POST['file'].".php"; $newFile = $_POST['file'].".html"; rename($oldFile, $newFile); ?>
You could possibly have php files read as html. You`d need to add a mime setting. I`m sure that would fix your issues. Or you could use a mod_rewrite to change the ending to .html