PHP Tutorials - page 3
A collection of tutorials for learning PHP.
- How to effectively use variables within strings to insert bits of data where needed.
- How to destroy and object that was instantiated when it is no longer needed by our PHP script.
- Validating user-input is one of the most important ways to increase security and prevent hacks; in this article, I will show how to easily validate GET and POST parameters, and prevent your app from being abused to send spam.
- This tutorial explains how to create a PHP script to show a random image in a browser.
- How to optimize image-loading and automatically include width and height attributes on img elements with PHP.
- How to count the number of characters in a multi-byte string using PHP.
- Backslashes in replacement string seem to disappear when the replacement is done using preg_replace
- PHP does not have named parameters build-in, but in this tutorial you can learn how to simulate the functionality with a bit of extra code.
- How to properly validate input from PHP using preg_match, and avoid undefined notices.
- How to get a list of included files and know if a certain file was included by PHP.