A quick search solved the problem, thanks This thread can be closed ________________________________________ a quick and easy one. I have a bunch of pages in html, but I need to add a dynamic php element. As result i must convert them to .php. What is teh easiest way to do that? Can I just change the ext ? Or must I also add the <?php> at the top and bottom and if so where exactly? Thanks in advance profezor
Just where yo need the element. <?php your php code ?> No need to insert it at the top of page. The php parser will parse the script when it views the above tags.
Just include the html extension in your htaccess file to be processed as php. Like this: AddType application/x-httpd-php htm html php AddHandler application/x-httpd-php .htm .html Then you can add your php code into your html file, and it will output correctly with the html extension. Checkout my "free dreamweaver extensions" link in my sig. That site is all dynamic php, but the files are all html out of Dreamweaver.