How to implement log out in PHP?
Implementing logout in PHP often will include a session_destroy(). But that is not all, you have to delete the session cookie and unset the session data. See PHP manual linked here under...
read moreHow to validate email address format in PHP?
You need to validate email address format in PHP whenever user enters an email in a form. If you are building a contact form, this is essential in order to prevent form hijacking. To validate an...
read moreHow to use PHP to validate that input is alphanumeric
Let’s say that we want to validate that an input from a PHP form is alphanumeric. We use PHP function preg_match like … To try out, you can construct page with form that submit to...
read morePHP Form that Submits to same page
Suppose you have a PHP with this basic form… And you want it to post to the same PHP page so that you don’t have to create a separate PHP page to process that form. No problem. Note...
read moreHow should passwords be stored in the database?
Suppose you are writing a PHP web application that needs to save username and passwords to MySQL database. How should the passwords be saved? Do not store as plain text You probably know that you...
read moreTutorial to read JSON from PHP
In this tutorial, we will show you how to read JSON files from PHP. JSON format are often use in public API’s. For example, the OpenWeatherMap.org API provides data in JSON format (and for...
read moreTutorial on How to Create a WordPress Wiget Plugin
In this tutorial, we are going to create a WordPress Widget Plugin. Although we are going to create simple plugin, you do have to have some development experience with WordPress and PHP. The plugin...
read moreHow to Send Email using Pear in PHP
Sure, you can send email in PHP using the PHP mail function. But if you are doing a lot of sophisticated email sending, some might find it nicer to code in a object oriented fashion using Pear...
read moreHow to determine if Pear is installed in PHP
Suppose you are on a shared webhost with PHP. You want to know if the commonly used Pear package is installed in this PHP installation. Just write the following PHP code into a file named...
read moreAll contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.