Tung_meister 0 Report post Posted April 2, 2005 hello, do i need to change any of the servers configuration to enable embedded php script to function within a html page?atm if i embed php script into a html file all i get displayed is the raw php or a blank page. Quote Share this post Link to post Share on other sites
olajideolaolorun 0 Report post Posted April 2, 2005 You probably need to edit the httpd.conf file or php.ini file for that. You have to add the extension along with the others.... Quote Best RegardsOlajide OlaolorunThe Uniform Server | Triple O, LLC Share this post Link to post Share on other sites
MrX 0 Report post Posted April 3, 2005 Did you give the file a .php extension? Quote Share this post Link to post Share on other sites
olajideolaolorun 0 Report post Posted April 3, 2005 No he is talking about embedding php into HTML... there is a way to do that using either the .html extension or .phtml Check those config files Quote Best RegardsOlajide OlaolorunThe Uniform Server | Triple O, LLC Share this post Link to post Share on other sites
olajideolaolorun 0 Report post Posted April 3, 2005 Take a look:http://www.faqts.com/knowledge_base/view.p...aid/9546/fid/51 Quote Best RegardsOlajide OlaolorunThe Uniform Server | Triple O, LLC Share this post Link to post Share on other sites
Tung_meister 0 Report post Posted April 4, 2005 thanks for the help but i worked out what to do afew hours after i made the post Quote Share this post Link to post Share on other sites
gopo 0 Report post Posted April 4, 2005 For those who want to have this feature, there is a simple shortcut and it dosen't require to cahnge your http.conf. Just add this line to the .htaccess file: addtype application/x-httpd-php .html .htm .bla You can add wathever you might want to, even something crazy, like .bla, your name or your nickname. In other words, personlize your site. If you do have.... personality. Quote Share this post Link to post Share on other sites
AlleyKat 0 Report post Posted April 8, 2005 If needed server-wide:I'd say in W:\usr\local\apache2\conf\httpd.confFind: AddType application/x-httpd-php .phtml .php3 .phpEdit line to read AddType application/x-httpd-php .phtml .php3 .php .html .htm If needed in one or more folders: Use gopo's method, add them via .htaccess But I need to point out the security risk associated with this method! Any upload script should probably be updated to see the newly defined files as executables too, and treat them with the same care as .php files are given. Most to me known PHP upload systems see .html files as a kind of documents, and that may be dangerous. Quote Share this post Link to post Share on other sites