luke777 Posted February 25, 2010 Share Posted February 25, 2010 how can i do this plz Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/ Share on other sites More sharing options...
aebstract Posted February 25, 2010 Share Posted February 25, 2010 http://php.about.com/od/advancedphp/p/html_php.htm Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/#findComment-1018113 Share on other sites More sharing options...
luke777 Posted February 25, 2010 Author Share Posted February 25, 2010 i tried this already, and you know what it does in firefox..... prompts a download on every html page....."save as" i dont want to save it i want to view it normally with php orking inside it Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/#findComment-1018207 Share on other sites More sharing options...
ndowens Posted February 25, 2010 Share Posted February 25, 2010 You can rename the .html file to .php or in your .htaccess file add AddHandler application/x-httpd-php .php .html Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/#findComment-1018252 Share on other sites More sharing options...
aebstract Posted February 25, 2010 Share Posted February 25, 2010 You can rename the .html file to .php or in your .htaccess file add AddHandler application/x-httpd-php .php .html You could just rename your pages to yourpage.php instead of yourpage.html, but you already have incoming links or search engine ranking so you don't want to change the file name. Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/#findComment-1018253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.