Php Programming Code Examples Php > Other Code Examples Factorial Factorial <?php function fact ($x) { if ($x <= 1) return 1; else return gmp_mul ($x, fact ($x-1)); } print gmp_strval (fact (1000)) . "\n"; ?> Dynapic A template script to provide the ability to get the next or previous n records Variable serialization and unserialization. Loading and saving variable structures Batch Uppercase-lowercase files and directories for a given path List all files in a directory Yet another random password generator with md5 encryption PHP_FTP This shows how to generate random numbers Using Large Objects List all files in a directory and place them in a select menu Show all rows of the "orders" table as a html table In a lot of dynamic forms or content management sytems the form element