Tutorials on Web Development, Programming, and Web Design

How to implement log out in PHP?

In Articles

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 more

How to validate email address format in PHP?

In Tutorials

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 more

How to use PHP to validate that input is alphanumeric

In Tutorials

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 more

PHP Form that Submits to same page

In Tutorials

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 more

How should passwords be stored in the database?

In Articles

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 more

Tutorial to read JSON from PHP

In Tutorials

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 more

Tutorial on How to Create a WordPress Wiget Plugin

In Tutorials

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 more

How to Send Email using Pear in PHP

In Tutorials

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 more

How to determine if Pear is installed in PHP

In Articles

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 more

Learn Web Tutorials is hosted by Hostmonster and design based on Wordpress template by Elegant Themes
All 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.