# Php code is not being executed

**URL:** <https://forum.infinityfree.com/t/php-code-is-not-being-executed/98118>\
**Category:** Hosting Support\
**Created:** [August 27, 2024, 9:52am UTC](https://forum.infinityfree.com/t/php-code-is-not-being-executed/98118 "2024-08-27T09:52:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [August 27, 2024, 10:51am UTC](https://forum.infinityfree.com/t/php-code-is-not-being-executed/98118/2 "2024-08-27T10:51:20Z")

</div>

Please read [this guide](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338), especially this part:

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/1):
>
> ### Make sure you are using the right database hostname (not localhost)
> 
> Most hosting providers use `localhost` for the database hostname. This does not work for InfinityFree. The database hostname should look like `sql123.epizy.com`. You can find your database hostname in your control panel in the MySQL Databases section.

---

_[View the full topic](https://forum.infinityfree.com/t/php-code-is-not-being-executed/98118)._
