# Help for testing php

**URL:** <https://forum.infinityfree.com/t/help-for-testing-php/52376>\
**Category:** Hosting Support\
**Created:** [September 29, 2021, 10:28pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376 "2021-09-29T22:28:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon98072793](https://forum.infinityfree.com/letter_avatar/anon98072793/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon98072793](https://forum.infinityfree.com/u/anon98072793)\
**Post date:** [September 29, 2021, 10:28pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/1 "2021-09-29T22:28:21Z")

</div>

hi ,i’m new

i just want to know how can i test my php codes on my own site here ,  
i cant find index.php in my file manager

there is just index2.html!!

how can i use php codes on my own site by this good service and company??

thanks!!

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [September 29, 2021, 10:33pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/2 "2021-09-29T22:33:18Z")

</div>

You will have to create an index.php file. Some code you can put in it is so:

```auto
<?php echo "Hello, World"; ?>

```

You can read this PHP guide to find some awesome stuff to do:

> **[PHP Tutorial](https://www.w3schools.com/php/)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

**Author:** ![anon98072793](https://forum.infinityfree.com/letter_avatar/anon98072793/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon98072793](https://forum.infinityfree.com/u/anon98072793)\
**Post date:** [September 30, 2021, 11:58am UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/3 "2021-09-30T11:58:41Z")

</div>

thank you so much , It works well.  
I would like to try this service now and buy the better one from this company later.  
I used xamp for training and I have never tested on a server connected to a network.

---

<div class="post-metadata">

**Author:** ![anon98072793](https://forum.infinityfree.com/letter_avatar/anon98072793/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon98072793](https://forum.infinityfree.com/u/anon98072793)\
**Post date:** [September 30, 2021, 12:03pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/4 "2021-09-30T12:03:37Z")

</div>

i just want to know :does this server support sockets?  
for example :can this server listen on port 2022 ?  
and can this server recieve data from clients?  
or i should use premium version?  
if you have time please tell me that ,thanks

---

<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:** [October 1, 2021, 1:33pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/5 "2021-10-01T13:33:57Z")

</div>

This is not something that’s possible on a web hosting service.

The key characteristics of a web hosting service is that it’s a shared server, and the software on it is managed by the hosting provider.

A consequence of this is that you can’t typically run your own background processes, or bind your own programs to ports on the server. With web hosting, your website code is executed and the page accessed through the web server software of the hosting provider.

I don’t know any web hosting service where what you want is possible. It’s not possible on our free hosting or on iFastNet’s premium hosting. I’m pretty sure you’ll need your own (virtual) server, or VPS, for this.

---

<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:** [October 8, 2021, 1:34pm UTC](https://forum.infinityfree.com/t/help-for-testing-php/52376/6 "2021-10-08T13:34:19Z")

</div>

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