Dynamically read $_POST variables into an array
Friday, September 8th, 2006 Posted in PHP | No Comments »[php] foreach ($_POST as $key=>$value) $url .= "&".$key."=" . $value; [/php]
PHP Listing files in a folder
Wednesday, September 6th, 2006 Posted in PHP | No Comments »This script goes through a given folder and finds all of the files and folders within. Using this script it is possible to recursively open up folders. [php] $PATH = $_ENV['DOCUMENT_ROOT']; $d=$PATH.'/home/server/public_html/folder/'; $files=array(); #initialize array $dir = opendir($d); while ($f = readdir($dir)) { if (eregi("\.php",$f)){ #if filename ...