# Putting my site in PHP is a real problem for me

**URL:** <https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129>\
**Category:** Hosting Support\
**Created:** [February 14, 2022, 5:08pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129 "2022-02-14T17:08:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 14, 2022, 5:08pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/1 "2022-02-14T17:08:39Z")

</div>

### Username : epiz\_30720945

Bonjour,  
Voila depuis maintenant un petit moment que je développe mon site internet, et j’ai apprécié les différents service de infinityfree. Maintenant que je m’y connait en HTML j’ai développé mon site en PHP (de façon très simpliste, c’est à dire de simple balise qui importe le code HTML d’autre page (comme une balise PHP, qui importe le code de ma barre de navigation…). J’ai vais mon code sur infinityfree, et rien, pas de site, absolument rien. J’ai donc fait mes recherches et j’ai découvert qu’il fallait activer des éléments pour que le PHP fonctionne. Hors toutes les vidéos YouTube sur lesquelles j’ai pus tombé, présentait cette installation sous une ancienne version de infinityfree. Alors je viens vous voir pour savoir comment le faire, car il me devient problématique de modifier le code HTML de ma barre de navigation sur mes 89 pages…

Merci d’avance, MarcusIsLion

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 14, 2022, 5:13pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/2 "2022-02-14T17:13:14Z")

</div>

voici mon site internet :  
[http://cubeparticule.epizy.com/](http://cubeparticule.epizy.com/)

---

<div class="post-metadata">

**Author:** ![YT\_Xaos](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/yt_xaos/32/45201_2.png) [@YT\_Xaos](https://forum.infinityfree.com/u/YT_Xaos)\
**Post date:** [February 14, 2022, 5:17pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/3 "2022-02-14T17:17:25Z")

</div>

> [@anon28915960](#):
>
> Bonjour,  
> Voila depuis maintenant un petit moment que je développe mon site internet, et j’ai apprécié les différents service de infinityfree.

Please type in English as this is an English forum.

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 14, 2022, 5:22pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/5 "2022-02-14T17:22:43Z")

</div>

Good morning,  
I have been developing my website for a while now, and I have enjoyed the various services of infinityfree. Now that I knew HTML, I developed my site in PHP (in a very simplistic way, that is to say a simple tag that imports the HTML code from another page (like a PHP tag, that imports the code from my navigation bar. . . ). I’m going my code on infinityfree, and nothing, no site, absolutely nothing. So I did my research and discovered that you had to activate elements for PHP to work. Out of all the YouTube videos I could come across, presented this installation as an old version of infinityfree. So I come to see you to know how to do it, because it becomes difficult for me to change the HTML code of my navigation bar on my 89 pages. . .

Thanks in advance, MarcusIsLion

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 14, 2022, 5:24pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/6 "2022-02-14T17:24:42Z")

</div>

This may be preventing you

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 14, 2022, 5:38pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/7 "2022-02-14T17:38:27Z")

</div>

this does not help me because it is not written how to publish your website in PHP

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [February 14, 2022, 5:57pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/8 "2022-02-14T17:57:59Z")

</div>

You can put the navbar code in a php file and then include them in the destination file.

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 14, 2022, 6:00pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/9 "2022-02-14T18:00:34Z")

</div>

the problem is that infinityfree does not recognize PHP for me, at the moment…

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [February 14, 2022, 6:23pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/10 "2022-02-14T18:23:07Z")

</div>

Wdym?? Can you tell the error?

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 14, 2022, 6:26pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/11 "2022-02-14T18:26:41Z")

</div>

InfinityFree has a PHP server, however you have to tell it to use it. You can do this by creating files with a .php extension and uploading them to the server.

So instead of using `index.html` and `Twitch.html`, use `index.php` and `Twitch.php`

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 14, 2022, 7:07pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/12 "2022-02-14T19:07:54Z")

</div>

If your page starts to render, and then just stops, it may be that our server is loading your PHP code, but the code is crashing.

If you open the developer tools in your browser and then check the Network tab, you should see more information of the request to your site. If it says the status code is `200`, then that’s good. If it says `500`, it means your code crashed.

If your code did crash, you can view the error message by enabling display\_errors on your site:

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [February 15, 2022, 1:15pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/15 "2022-02-15T13:15:52Z")

</div>

I don’t have an error message. Sorry…

yes but even with, PHP tags don’t work…

I’ll check that out.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [February 22, 2022, 1:16pm UTC](https://forum.infinityfree.com/t/putting-my-site-in-php-is-a-real-problem-for-me/58129/16 "2022-02-22T13:16:42Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
