PHP code to display Date and Time
Below is PHP code to display Date and time. <?php echo date("D M d, Y H:i:s"); ?> In above code; D -> Display day example Sunday M -> Display month example January d -> Display date,...
View ArticlePHP code to redirect a page
You can set redirection of a page to any other url using a simple php code. In below code I will redirect to www.google.com <?PHP header("Location: http://www.google.com"); exit; ?> If you want...
View ArticlePHP code to display visitors IP
You can show your website visitors IP using a simple PHP code. Use below code to display visitors IP. <?php echo $_SERVER['REMOTE_ADDR']; ?>
View ArticlePHP code to display visitors browser details
You can show your website visitors browser information using a simple PHP code. Use below code to display visitors IP. <?php echo $_SERVER['HTTP_USER_AGENT']; ?> Demo Live Demo Of Browser details
View ArticlePHP Password Generator
This is a simple PHP password generator script. It will generate 12 characters random password every time you click the generate button. The password will be combination of: 3 lower case letters 3...
View Article