WP Reference for Logout Page

Hello Friends
Now I am going to introduce how to make a custom logout reference page in your own page.

By Default Code is:

<?php echo wp_logout_url( $redirect ); ?>

Examples are given below-

Default Code is:
<a href=”<?php echo wp_logout_url(); ?>” title=”Logout”>Logout</a>

Logout and Redirect to Current Page

<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>

Logout and Redirect to Homepage

<a href=”<?php echo wp_logout_url( home_url() ); ?>” title=”Logout”>Logout</a>

This is the very easy way to add a logout page in your blog. Thanks for reading.
Wait for next tuts.


Create download box by Photoshop

Project Type: PSD Design
Software: Adobe Photoshop
Time: 30-45 Minuets
Target People: Beginner & Intermediate

Hello Reader, now I am read to show how to create a download box by using photoshop. The final output of this work are in below-

Create Download box by Photoshop

This is a very nice download box. I have made a tutorial for this. Its a video tutorial. You can watch this video from youtube.com. I am attaching the link of this video. There are 2 parts of this video.

Continue reading

Creating ZIP folder by using PHP

Hello Friends, How are you?
Today I am going to introduce the ZIP folder creating system by using PHP. Its a very easy system. My interface is just select the file which you want to make ZIP and click the download button. You can select more than 1 file. Lets see the code-

$error = “”; //error holder
$post = $_POST;
$file_folder = “files/”; // folder to load files
if(extension_loaded(‘zip’)){ // Checking ZIP extension is available
if(isset($post[‘files’]) and count($post[‘files’]) > 0){ // Checking files are selected
$zip = new ZipArchive(); // Load zip library
$zip_name = time().”.zip”; // Zip name
if($zip->open($zip_name, ZIPARCHIVE::CREATE)!==TRUE){ // Opening zip file to load files
$error .= “* Sorry ZIP creation failed at this time<br/>”;
Continue reading

PHP-MySql Data Insert by OOPHP pattern

Hello Friends, Now we are going to learn how to insert data into mysql database by using object oriented php pattern. For this, I am making a database table called ‘datainsert’ and database name should be oophplearn.

Then we are going to write our first php function for Object Oriented in the file of ‘functions.class.php’. The code are in below-


class dataInsert{

public $command;

public function __construct(){
@mysql_connect (‘localhost’,’root’,”) or die(mysql_error());
@mysql_select_db(‘oophplearn’) or die(mysql_error());

public function insertData($value){

$sql = “INSERT INTO datainsert VALUES(”, ‘”.$value.”‘)”;

$this->command = @mysql_query($sql);

echo ‘Data Insert Successfully…’;

}//public function insertData($value){

} //class dataInsert{


Now I am writing another file called index.php into our directory. The code are in below-

//including the functions

$fun = new dataInsert();

//confiming work if submit button will be press…

//calling the function from class…
<!DOCTYPE html>
<title>Data Insert by Object Oriented PHP</title>

<form name=”” action=”” method=”post”>
Name: <input type=”text” name=”name” id=”name” placeholder=”Type You Name” required/>
<input type=”submit” name=”submit” value=”Save My Name”/>

Now, save all the works and run the index.php file by browser. Ok, if everything is okay, then you will get a from to write you name. Just write your name and submit your name. Then you will get a notification for confirmation of your post. Ok, now check in your database, and you will get your new information into your database. That’s enough for today.

Keep in touch and bye for today.

PHP-MySql Hit Counter by OO PHP Pattern

Hello Friends, How are you?
Today I am going to learn how to make a Web Page Hit Counter by using PHP and MySql with Object Oriented PHP Pattern. For this work, we make only 2 files of PHP and 1 MySql Database with only one table. Lets go to start…

First of all, I am making a MySql database table for this. The database name should be ‘oophplearn‘ and table name should be ‘hitcounter‘. The structure of the table is below-

id count
 int (11)- Auto Increment  int(11)

Ok, now we are going to write our code. First of all, I am opening the notepad++ and create a new php file called ‘functions.class.php‘ . The code of this page is-



class Hitcounter{

//declaring the variables
public $command;

Continue reading

HTML5 doctype declaration

Hello Friends, Hope you are fine. Now, we are going to learn about the basic concept of HTML5. It is a series of tutorial. You can learn the basic of HTML5 from these tutorial InsAllah. Today, we are learning about the HTML5 doctype declaration.  Let’s go-

We know, every language has some grammar and vocabulary. HTML5 has also these.

The grammar  of HTML5 is that, you have to write <!DOCTYPE html> on the top of the page. Its the Grammar of HTML5.


The vocabulary of HMTL5 is ,  <!DOCTYPE html>   on top of your page. It’s indicate that, what kind of page it is. When a user browse this site, the information will be sent to the browser. It’s the Vocabulary of HTML5.

Its enough for today’s lesson. Wait for next lesson.