Megh Parikh Posted June 9, 2012 Posted June 9, 2012 php does not execute when in html pagei used <?php echo "hi";?>Pls. Help
anush Posted June 10, 2012 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.
Byron Posted June 10, 2012 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now