1981tarun Posted May 6, 2010 Share Posted May 6, 2010 Hello Friends, I use the combination of the HTML and PHP. But if i use the PHP (ONLY CODE) separate file then its work. But if i use PHP code in HTML file it could not work properly and after run my html file PHP code will show over browser. this all work is doing over the server only. So, please help me what I do in this matter. and which type of changes I do it in HTML file or Server. Thanks Tarun Nanda Quote Link to comment https://forums.phpfreaks.com/topic/200862-problem-of-combination-of-html-and-php/ Share on other sites More sharing options...
Alex Posted May 6, 2010 Share Posted May 6, 2010 If you have any PHP code in a file that you wish to execute you must name the file with a .php extension (or use other methods to tell the server to parse other files as PHP files). You can combine PHP and HTML in a single file. Quote Link to comment https://forums.phpfreaks.com/topic/200862-problem-of-combination-of-html-and-php/#findComment-1053957 Share on other sites More sharing options...
1981tarun Posted May 6, 2010 Author Share Posted May 6, 2010 Sir, I use all ready change the extension from HTML to PHP but its not working properly and those PHP file is giving blank over the browser. So as per your response can you tell me how (other methods to tell the server to parse other files as PHP files) in detail. Thanks Tarun nanda Quote Link to comment https://forums.phpfreaks.com/topic/200862-problem-of-combination-of-html-and-php/#findComment-1053958 Share on other sites More sharing options...
kenrbnsn Posted May 6, 2010 Share Posted May 6, 2010 Please post some of your source code so we don't have to guess at how you've written your code. Ken Quote Link to comment https://forums.phpfreaks.com/topic/200862-problem-of-combination-of-html-and-php/#findComment-1053965 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.