PHP includes in an html file

Asked by:
HubFans / n/a Points
2014-07-17 2:30 pm EST
Website Troubleshooting
I am trying to update a regular html file to include a PHP file. I know my PHP file works, since if I go to it works correctly.

However when I add:
<?php include 'MilesforQuinnTotalOneLineOnly.php';?>

to my web page it doesn't do anything?
Thanks - Rob.

To ask this user for more information, please first login.

To submit an answer, please login.



2,342 Points
2014-07-17 2:33 pm EST
To include PHP code within the file, it will need to have the .php extension. If the file has a .html extension, it will not be processed as PHP. You will need to change this HTML file to a PHP file to allow for the PHP include.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.