InMotion Hosting Support Center

My PHP code is not running on XAMPP

n/a Points
2013-11-06 1:42 am EST

Hits: 941
i'm using xamppv3. i stored my php form in the htdocs folder. when i run my script to connect to my database, it doesn't connect but rather displays the php code. can someone pls help me with this?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



11,186 Points
2013-11-06 8:45 am EST
While I am not very familiar with XAMPP, it does sound like your code is not appropriately being handled by Apache as PHP. You would need to ensure that PHP is properly running on your system. Be sure that all PHP also files also have a .php extension on them. You may test your PHP configuration by creating a phpinfo page that will allow you to see your PHP settings as well.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Social Media Login

Social Login Joomla

Need more Help?


Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!