User Guide
Thank you for purchasing from CodeShack!
Your support will help keep our website up and running, and will help us provide you with more quality content!
If you have any issues, don't hesitate to contact us via our website or directly to our email at support@codeshack.io.
For more information regarding this package (FAQs, updates, etc.), click here.
Requirements
I recommend you read the following tutorials on our website (if you haven't already):
- https://codeshack.io/secure-login-system-php-mysql/
- https://codeshack.io/secure-registration-system-php-mysql/
You will need the following:
- XAMPP or a web-server with PHP, MySQL and phpMyAdmin installed. If you've purchased web hosting, you will need to upload the files to your web directory.
- A code editor; you can use Notepad to edit the PHP files, but I don't recommend it. Instead, download one of the following: Notepad++, Visual Studio Code, or Atom.
Instructions
- Open the XAMPP control panel and start Apache and MySQL
- Upload/import the "phplogin.sql" file in phpMyAdmin
NOTE: If you receive a MySQL permissions error, you might need to create the database manually and remove the "CREATE DATABASE" statement from the SQL file. - Copy/cut one of the packages directory into your web directory (htdocs, www, etc.)
NOTE: If you're a beginner programmer, I highly recommend that you use the "advanced_pdo" package as it's much easier to understand and adapt the code. - Rename the directory to "phplogin" and navigate to http://localhost/phplogin/ in your web browser
-
Basic Package: Update the MySQL connection details in the PHP files.
Advanced Package: Edit the "config.php" file and update the MySQL connection details. Feel free to update the other variables in the configuration file.
Advanced MVC: In order for this to work correctly, you need the Apache "mod_rewrite" module enabled on your server. I only recommend this version for those who have programming experience and are familiar with the MVC design pattern. -
Advanced Package: Navigate to http://localhost/phplogin/admin/ to access the admin panel or click the Admin link in the navigation bar. You can login to the admin panel with the following credentials:
Username: admin
Password: admin
If you DO NOT need the admin panel, you can delete the "admin" directory and its contents. - Enjoy coding and thank you for supporting us!