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.
If you need help setting up the package, we offer installation service for a small fee. Please get in touch with us at the email address mentioned above.
For more information regarding this package (FAQs, updates, etc.), click here.
Requirements
If you plan to use the tutorial source code, I recommend you read the following tutorials on our website:
- 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. XAMPP should not be used for production purposes.
- Code Editor ‐ You can use Notepad to edit the PHP files, but I don't recommend it. Instead, download one of the following: Visual Studio Code, Notepad++, or Atom.
Optional: With Visual Studio Code, you can download a SCSS compiler extension that automatically converts SCSS to CSS.
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, such as "secret_key" that will enhance the security of the system.
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
If you DO NOT need the admin panel, you can delete the "admin" directory and its contents.
Password: admin
- Enjoy coding and thank you for supporting us!
Additional Resources
- Video guide on how to install XAMPP: https://www.youtube.com/watch?v=tgxzEXASInI
- PHPMailer documentation: https://github.com/PHPMailer/PHPMailer
- FontAwesome library: https://fontawesome.com/
- Securing session INI settings: https://www.php.net/manual/en/session.security.ini.php