HS Banner
HS Codebank Articles
Page 1 of 2

Delete a File 03/13/2023

Description:

This is how to delete a file and check whether it exists.

Author: Admin
Language: C#
Tags: cs delete file
Read More2

PHP Tags 03/07/2023

Description:

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.

Author: Admin
Language: PHP
Tags: php tags
Read More4

Environment GetFolderPath Method 10/21/2022

Description:

GetFolderPath (Environment+SpecialFolder) gets the path to the specified system special folder.

Author: Admin
Language: Visual Basic .NET
Tags: environment getfolderpath
Read More196

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

Send email from a VB.Net application 03/26/2022

Description:

Here's an example of how to send an email in a VB.Net application.

Author: Admin
Language: Visual Basic .NET
Tags: send email vb.net
Read More375

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 More505

Scan Your Website Headers 02/12/2022

Description:

Here's a great site to scan the security headers for your website.

Author: Guitarman
Language: Plain Text
Tags: headers security
Read More283

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 More267

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

PHPMailer 09/19/2021

Description:

PHPMailer – A full-featured email creation and transfer class for PHP

Author: Admin
Language: PHP
Tags:
Read More338

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