WAMP server is one of the most important software that makes PHP an amazing languange.IF you want to start coding in php,you can just make your system ready for programming in minutes using WAMP server.The WAMP server is a software package which brings the following things under a single roof 1.Apache – webserver 2.MySql – [...]
PHP password generator is a complete, working random password generation function for PHP. It allows the developer to customize the password: set its length and strength. Just include this function anywhere in your code and then use it. Source : http://www.webtoolkit.info/php-random-password-generator.html function generatePassword($length=9, $strength=0) { $vowels = ‘aeuy’; $consonants = ‘bdghjmnpqrstvz’; if ($strength & 1) [...]
Forces a user to download a file, for e.g you have an image but you want the user to download it instead of displaying it in his browser. header(“Content-type: application/octet-stream”); // displays progress bar when downloading (credits to Felix ) header(“Content-Length: ” . filesize(‘myImage.jpg’)); // file name of download file header(‘Content-Disposition: attachment; filename=”myImage.jpg”‘); // reads [...]