PHP Tags 03/07/2023
When PHP parses a file, it looks for opening and closing tags, which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows PHP to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser.
Tags: php tags
PHP Crypt 02/11/2023
crypt() will return a hashed string using the standard Unix DES-based algorithm or alternative algorithms. password_verify() is compatible with crypt(). Therefore, password hashes created by crypt() can be used with password_verify().
Tags: php crypt hash password
PHP Tutorial With W3 Schools 12/30/2022
Here's a nice tutorial for developing in PHP.
Language: Plain Text
Tags: php tutorial developing
PHP Shuffle 09/11/2022
Randomizes the order of the elements in an array.
Tags: php shuffle array
Start and Setup a PHP Session 07/27/2022
Here's how I start and setup a session for a PHP app.
Tags: session php
Populate HTML Table on Page Load. 06/17/2022
Here's a simple way to populate an HTML table on page load using PHP.
Tags: html php table foreach
HTML Datetime Input Box 05/15/2022
Here's some code to set the default datetime for an input box with its type set to datetime-local using HTML and PHP.
Tags: input datetime-local php html
List All Files in a Directory Using PHP 04/05/2022
In PHP there are several ways to get a list of files in a PHP application.
Tags: list files directory php glob scandir opendir readdir closedir filesystemiterator
PHP File Upload 03/11/2022
Here's some sample code to upload a file using PHP.
Tags: php uplaod file
Bad Word Filter 02/26/2022
Here's a filter you can use to remove bad words from user submitted data.
Tags: php bad word filter
If you would like to share your code on HS Codebank you can submit it by registering and clicking the submit article button on this page.