# How to create a login and sign in

**URL:** <https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381>\
**Category:** Hosting Support\
**Created:** [May 9, 2024, 9:39pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381 "2024-05-09T21:39:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![laptopmine](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/laptopmine/32/48194_2.png) [@laptopmine](https://forum.infinityfree.com/u/laptopmine)\
**Post date:** [May 9, 2024, 9:39pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/1 "2024-05-09T21:39:16Z")

</div>

i found this tutorial on infinityfree forum [Secure Login System with PHP and MySQL](https://codeshack.io/secure-login-system-php-mysql/) but it tells to install XAMPP and i dont understand as i dont find it and even there is a .htaccess code that i dont understand if anyone can help me find out how to make a login and sign in ill be happy to listen! 😃

---

<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:** [May 9, 2024, 9:48pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/2 "2024-05-09T21:48:22Z")

</div>

XAMPP is a local server used for testing PHP code on your local device.

And when searching for login forms on Google, make sure you find one with good reviews. 90% of login forms out there are not coded correctly, and have security vulnerabilities in them.

---

<div class="post-metadata">

**Author:** ![laptopmine](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/laptopmine/32/48194_2.png) [@laptopmine](https://forum.infinityfree.com/u/laptopmine)\
**Post date:** [May 10, 2024, 12:32am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/3 "2024-05-10T00:32:51Z")

</div>

ok thanks but i found [Secure Login System with PHP and MySQL](https://codeshack.io/secure-login-system-php-mysql/) on a reply on this forum but if you have one to share with me ill be happy 😁

---

<div class="post-metadata">

**Author:** ![laptopmine](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/laptopmine/32/48194_2.png) [@laptopmine](https://forum.infinityfree.com/u/laptopmine)\
**Post date:** [May 10, 2024, 12:57am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/4 "2024-05-10T00:57:54Z")

</div>

and now i did some diging and there is an error but i did everything right [https://0974.rf.gd/phplogin/index.html](https://0974.rf.gd/phplogin/index.html) [Secure Login System with PHP and MySQL](https://codeshack.io/secure-login-system-php-mysql/) and the error is when 4. Authenticating Users with PHP

---

<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:** [May 10, 2024, 1:35am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/5 "2024-05-10T01:35:59Z")

</div>

Turn on error messages (Control panel → PHP Config) and reload the page to see what to error message actually is,

> [@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:** ![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:** [May 10, 2024, 5:07am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/6 "2024-05-10T05:07:35Z")

</div>

> **[GitHub - delight-im/PHP-Auth: Authentication for PHP. Simple, lightweight and...](https://github.com/delight-im/PHP-Auth)**
>
> Authentication for PHP. Simple, lightweight and secure. - delight-im/PHP-Auth

you can try this. install it via composer and then upload the files to the file manager.

---

<div class="post-metadata">

**Author:** ![laptopmine](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/laptopmine/32/48194_2.png) [@laptopmine](https://forum.infinityfree.com/u/laptopmine)\
**Post date:** [May 10, 2024, 12:32pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/7 "2024-05-10T12:32:45Z")

</div>

wtf is a composer? like .zip?

---

<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:** [May 10, 2024, 1:07pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/8 "2024-05-10T13:07:39Z")

</div>

Composer is a dependency manager for PHP. It’s like an app store, but instead of managing apps on your phone you can use it to manage third party code in your website, and make it easy to install and update.

In my personal opinion, I wouldn’t use an off the shelf authentication library. I’m more a fan of just taking a full web framework, like Laravel, which comes with a lot more functionality out of the box than just authentication, and encourages a clean structure of your project. I have built my own authentication systems too, but that was mostly as a learning exercise. If it’s also your goal to learn, then please do go ahead and implement it yourself.

---

<div class="post-metadata">

**Author:** ![laptopmine](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/laptopmine/32/48194_2.png) [@laptopmine](https://forum.infinityfree.com/u/laptopmine)\
**Post date:** [May 10, 2024, 4:44pm UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/9 "2024-05-10T16:44:11Z")

</div>

okk thanks well do you have the link please of the exercise or the page

---

<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:** [May 11, 2024, 9:30am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/10 "2024-05-11T09:30:50Z")

</div>

> [@laptopmine](#):
>
> do you have the link please of the exercise or the page

When I learned it for myself, I was in school and had course material for it. But I like to learn by doing, and just having my own project and plowing through by mixing and matching things from different guides and tutorials.

For learning authentication, the guide you had seems good enough. For Composer, there are plenty of other guides to find online, and I don’t have any specific recommendations.

---

<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:** [May 18, 2024, 9:31am UTC](https://forum.infinityfree.com/t/how-to-create-a-login-and-sign-in/93381/11 "2024-05-18T09:31:47Z")

</div>

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