HS Banner
HS Codebank Articles
Page 1 of 1

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 More364

PHP whois lookup Class 12/05/2021

Description:

This is a standalone php class to find whois information of a domain or IP.

Author: Guitarman
Language: PHP
Tags: php
Read More358

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 More604

PHP min() and max() Functions 09/05/2021

Description:

The min() and max() functions can be used to find the lowest or highest value in a list of arguments:

Author: Admin
Language: PHP
Tags:
Read More256

Webserver Class 04/15/2021

Description:

This is a simple http webserver class I found years ago.

Author: Guitarman
Language: C#
Tags:
Read More348

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