HS Banner
HS Codebank Articles
Page 1 of 3

PHP Shuffle 09/11/2022

Description:

Randomizes the order of the elements in an array.

Author: Admin
Language: PHP
Tags: php shuffle array
Read More183

PHP Session 07/27/2022

Description:

Here's how I setup a session for a PHP app.

Author: Admin
Language: PHP
Tags: session php
Read More180

Populate HTML Table on Page Load. 06/17/2022

Description:

Here's a simple way to populate an HTML table on page load using PHP.

Author: Admin
Language: PHP
Tags: html php table foreach
Read More184

HTML Datetime Input Box 05/15/2022

Description:

Here's some code to set the default datetime for an input box with its type set to datetime-local.

Author: Admin
Language: PHP
Tags: input datetime-local php html
Read More174

List All Files in a Directory Using PHP 04/05/2022

Description:

In PHP there are several ways to get a list of files in a PHP application.

Author: Admin
Language: PHP
Tags: list files directory php glob scandir opendir readdir closedir filesystemiterator
Read More189

PHP File Upload 03/11/2022

Description:

Here's some sample code to upload a file using PHP.

Author: Guitarman
Language: PHP
Tags: php uplaod file
Read More487

Bad Word Filter 02/26/2022

Description:

Here's a filter you can use to remove bad words from user submitted data.

Author: Admin
Language: PHP
Tags: php bad word filter
Read More174

Securing Session INI Settings for PHP 02/17/2022

Description:

By securing session related INI settings, developers can improve session security. Some important INI settings do not have any recommended settings. Developers are responsible for hardening session settings.

Author: Admin
Language: Plain Text
Tags: php manual cookie securing session
Read More214

Predefined PHP Variables 01/17/2022

Description:

PHP provides a large number of predefined variables to all scripts. The variables represent everything from external variables to built-in environment variables, last error messages to last retrieved headers.

Author: Admin
Language: PHP
Tags: php
Read More182

PHP Switch Statement 01/09/2022

Description:

Use the switch statement to select one of many blocks of code to be executed.

Author: Guitarman
Language: PHP
Tags: php switch
Read More208

Submit Your Code

If you would like to share your code on HS Codebank you can submit it using the contact page, email, or by registering and clicking the submit article button.
Register Contact Us

Apache Config
Bash
C
C#
C++
CoffeeScript
CSS
Diff
GO
HTML, XML
HTTP
Java
JavaScript
JSON
Kotlin
Less
Lua
Makefile
Markdown
Nginx Config
NSIS
Objective-C
Perl
PHP
Plain Text
PowerShell
Properties
Python
Python REPL
R
Ruby
Rust
SCSS
Shell Session
SQL
Swift
TOML, also INI
TypeScript
VB Script
Visual Basic .NET
YAML
Request New Language