HS Banner
HS Codebank Articles
Page 1 of 2

PHP Time Function 01/07/2024

Description:

This is a simple PHP time function.

Author: Admin
Language: PHP
Tags: php time
Read More

Your first PHP-enabled page 11/30/2023

Description:

This is a basic PHP page for beginners.

Author: Admin
Language: PHP
Tags: php hello world html
Read More

PHP Crypt 02/11/2023

Description:

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().

Author: Admin
Language: PHP
Tags: php crypt hash password
Read More

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 using HTML and PHP.

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

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 More

Convert decimal to fraction and fraction to decimal 02/13/2022

Description:

Here's two functions I found in the wild that will convert a decimal to fraction and a fraction to decimal

Author: Admin
Language: Visual Basic .NET
Tags: fraction decimal convert
Read More

Web Application Penetration Testing 01/29/2022

Description:

Penetration testing or ethical hacking is a proactive way of testing your web applications by simulating an attack that's similar to a real attack that could occur on any given day.

Author: Admin
Language: Plain Text
Tags: penetration testing kali linux
Read More

Example of .htaccess for PHP 10/06/2021

Description:

A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, used for configuration of website-access issues, such as URL redirection, URL shortening, access control (for different web pages and files), and more. The 'dot' (period or full stop) before the file name makes it a hidden file in Unix-based environments.

Author: Admin
Language: HTTP
Tags: html .htaccess php
Read More

Send/Export DevExpress Reports to PDF 08/11/2021

Description:

How to dynamically send a DevExpress report via e-mail as a PDF

Author: Admin
Language: C#
Tags:
Read More

Random Key Generator 05/08/2021

Description:

This is a class I found and modified to generate a random key.

Author: B.Henry
Language: Visual Basic .NET
Tags:
Read More

Submit Your Code

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.
LoginRegisterContact Us

List of Supported Languages
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