Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users boo…
By apphp-snippets
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites wi…
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechan…
You may create a back button like your browser has. The following script allows the visitor to press a button and returns the hi…
You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions o…
Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose …
Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.
This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last c…
This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined …
The mail() function allows you to send emails directly from a script. Remember, that most of shared hosting providers require (f…
Want to share your source code? Create your account and join our community!