Skip to content

Instantly share code, notes, and snippets.

View code-boxx's full-sized avatar
🏠
Working from home

Code Boxx code-boxx

🏠
Working from home
View GitHub Profile
@code-boxx
code-boxx / 0-PHP-ROLE-MANAGEMENT.MD
Last active May 26, 2023 02:41
PHP MYSQL User Role Management

PHP MYSQL USER ROLE MANAGEMENT

https://code-boxx.com/php-user-role-management-system/

NOTES

  1. Create a database and import 1-database.sql.
  2. Change the database settings in 2-lib-user.php to your own.
  3. Run 3a-login.php to log in as a manager, supervisor, or log out.
  4. Then access 3b-run.php to see how the permission restrictions work.

LICENSE

@code-boxx
code-boxx / 0-PHP-CATEGORY.MD
Last active May 26, 2023 02:44
PHP MYSQL Category Subcategory

PHP MYSQL CATEGORY & SUB-CATEGORY

https://code-boxx.com/categories-subcategories-php-mysql/

NOTES

  1. Create a database and import 1-category.sql.
  2. Change the database settings in 2-lib-category.php to your own.
  3. Access 3-draw.php in the browser – Study how the recursion works.
  4. Study 4-add-edit-del.php for the “admin functions”.

LICENSE

@code-boxx
code-boxx / 0-PHP-GD-COMPRESS-IMG.MD
Last active November 12, 2023 09:14
PHP GD Compress Images
@code-boxx
code-boxx / 0-PHP-DATABASE-SESSION.MD
Last active May 26, 2023 02:46
PHP Database Session

SAVE PHP SESSION IN MYSQL DATABASE

https://code-boxx.com/save-php-session-in-database/

NOTES

  1. Create a dummy database and import 1-db-sess.sql.
  2. Change the database settings in 2-lib-sess.php to your own.
  3. Access 3-demo.php in the browser and verify the session entry in the database.

LICENSE

Copyright by Code Boxx

@code-boxx
code-boxx / 0-PHP-LIST-FILES-FOLDERS.MD
Last active June 27, 2023 05:23
PHP List Files & Folders

WAYS TO LIST FILES & FOLDERS IN PHP

https://code-boxx.com/list-files-folders-php/

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

@code-boxx
code-boxx / 0-PHP-GET-FILES.MD
Last active May 26, 2023 02:48
PHP Get Files (By Extension, Prefix, Name, Date)

PHP SEARCH & GET FILES (BY EXTENSION, PREFIX, NAME, DATE)

https://code-boxx.com/php-get-files/

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

@code-boxx
code-boxx / 0-PHP-RECAPTCHA.MD
Last active May 26, 2023 02:50
PHP Contact Form With Google RECAPTCHA
@code-boxx
code-boxx / 0-PHP-MESSAGING.MD
Last active December 11, 2023 02:47
PHP MYSQL Simple Messaging System

PHP MYSQL MESSAGING SYSTEM

https://code-boxx.com/messaging-system-php-mysql/

IMAGES

x-girl

NOTES

  1. Create a database, import 1-database.sql.
  2. Change the database settings in 2-lib-msg.php to your own.
  3. Launch 4-demo-msg.php in the browser and test send some messages.
@code-boxx
code-boxx / 0-PHP-CONVERT-IMG.MD
Last active August 6, 2023 09:29
PHP Convert Image File Format
@code-boxx
code-boxx / 0-PHP-FILE-UPLOAD.MD
Last active May 26, 2023 02:53
PHP Very Simple File Upload

SIMPLE PHP FILE UPLOAD

https://code-boxx.com/simple-php-file-upload/

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell