Megh Parikh Posted June 9, 2012 Share Posted June 9, 2012 php does not execute when in html pagei used <?php echo "hi";?>Pls. Help Quote Link to comment Share on other sites More sharing options...
Byron Posted June 9, 2012 Share Posted June 9, 2012 Does your page have a .php extension? Quote Link to comment Share on other sites More sharing options...
anush Posted June 10, 2012 Share Posted June 10, 2012 You need give .php extension to the file not .html . its with the extension the server can determine whether to execute file before sending or not , there is nothing else possible with this simple code. @Megh Parikh don't worry about this , this happen when you are starting. you are welcome with all kinds of doubt here. Quote Link to comment Share on other sites More sharing options...
Byron Posted June 10, 2012 Share Posted June 10, 2012 If your on the server Stevie, you can have the server parse html files as php by adding this code to your root .htaccess file: AddHandler application/x-httpd-php5 .html .htm That way all files that end in .html will show php code. This only works on the Stevie server. Quote Link to comment 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.