PHP Tags 03/07/2023
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 More19
PHP Crypt 02/11/2023
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 More44
PHP Shuffle 09/11/2022
Randomizes the order of the elements in an array.
Author: Admin
Language:
PHP
Tags:
php
shuffle
array
Read More379
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.
Author: Admin
Language:
PHP
Tags:
list
files
directory
php
glob
scandir
opendir
readdir
closedir
filesystemiterator
Read More374
Securing Session INI Settings for PHP 02/17/2022
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 More346
Predefined PHP Variables 01/17/2022
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 More269
PHP whois lookup Class 12/05/2021
This is a standalone php class to find whois information of a domain or IP.
Author: Guitarman
Language:
PHP
Tags:
php
Read More364
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.
Author: Admin
Language:
HTTP
Tags:
html
.htaccess
php
Read More618
Escaping from HTML 05/16/2021
Escaping from HTML in PHP
Author: Guitarman
Language:
PHP
Tags:
Read More359
Detect a robot/spider. 05/16/2021
This is a simple pace of code to detect a robot/spider in your PHP website.
Author: Guitarman
Language:
PHP
Tags:
Read More263
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