rename()

— Renames a file or directory Description bool rename ( string $oldname , string $newname [, resource $context ] ) Attempts to rename oldname to newname .

fwrite() example

Description int fwrite ( resource $handle , string $string [, int $length ] ) fwrite() writes the contents of string to the file stream pointed to by handle .

how to use php generate passwords

Here are 2 kind php code can generat strong passwords: $password_length = 9; function make_seed() { list($usec, $sec) = explode(’ ‘, microtime()); return (float) $sec + ((float) $usec * 100000); } srand(make_seed()); $alfa = “1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM”; $token = “”; for($i =… Read morehow to use php generate passwords