Jump to content

[Asnwered] Php Not Executing


Megh Parikh

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...