Skip to content

Instantly share code, notes, and snippets.

@hostedpixel
hostedpixel / countries.md
Created September 22, 2017 18:46 — forked from richjenks/countries.md
ISO 3166 countries by region — AMER, EMEA & APAC
Country ISO 3166 Region
Afghanistan AF EMEA
Åland Islands AX EMEA
Albania AL EMEA
Algeria DZ EMEA
American Samoa AS APAC
Andorra AD EMEA
Angola AO EMEA
Anguilla AI AMER
@hostedpixel
hostedpixel / recursive_directory.php
Created August 26, 2019 15:40 — forked from erainey/recursive_directory.php
PHP: Recursive Directory Listing
/***
This function will read the full structure of a directory. It's recursive becuase it doesn't stop with the one directory, it just keeps going through all of the directories in the folder you specify.
http://www.codingforums.com/showthread.php?t=71882
***/
function getDirectory( $path = '.', $level = 0 ){
$ignore = array( 'cgi-bin', '.', '..' );
// Directories to ignore when listing output. Many hosts