luke777 Posted February 25, 2010 Share Posted February 25, 2010 how can i do this plz Quote 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 Quote 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 Quote 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 Quote 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 Quote You can rename the .html file to .php or in your .htaccess file add AddHandler application/x-httpd-php .php .html Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/193376-php-in-html-file/#findComment-1018253 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.