PHP includes in an html file

Asked by:
HubFans / n/a Points
Time:
2014-07-17 9:30 pm EST
Category:
Website Troubleshooting
Hits:
123
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 http://www.2020visionquest.org/MilesforQuinnTotalOneLineOnly.php 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.

ANSWERS

0

JeffMa
Staff
2,342 Points
2014-07-17 9: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!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com 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.
}