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
Example of .htaccess for PHP 10/06/2021
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.
Tags: html .htaccess php
Redirect HTTP to HTTPS on IIS 04/10/2021
Add this to your web.config file to redirect users to HTTPS on IIS web servers. (ASP.Net and PHP)
Language: HTML, XML
PHP Filesystem Security 04/03/2021
Anyone learning PHP should read this and the rest of the security section in the PHP manual.
Active Directory Computer Accounts 03/27/2021
Copy an Active Directory Computer Account , LDAP.
Language: VB Script
SHA256 Class 03/19/2021
Computes the SHA256 hash for the input data.
NSIS Installer Script 03/19/2021
NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers.
Author: Brian Henry
Tags: NSIS installer
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.