Tuesday, 6 February 2018

How You Should Write an Article on Your Blog - Rank # 1 On Google ( 2018 Strategy )

How is How You Should Write an Article on Your Blog | 6 Steps with Examples

Step 1:


Find a keyword to write an article on it. For example, your keyword is "Traffic Strategy"

Step 2:


Make an appealing title for the keyword so that it becomes CTR Magnet because the more people click your result in SERP, the better it will rank.
*Note: Use Buzzsumo to find a great title. Play with this tool for 10 minutes. Free to make an account, just need your phone number.
*Pro Tip: A title having an odd number, time frame, and bracket performs much better.
Like
"How to Get 260.7% More Organic Traffic In 14 Days (New Strategy + Case Study)"
260 = Number
14 Days = Time Frame
( ) = Brackets

Step 3:


Research like a Super Bloggers Funda Member. Use Google Scholar to find untapped resources. Make your article look like a beast with in-depth proof and evidence. The internet is full of fake news. Make the trustworthy resource.

Step 4:


Decorate as if you have found a beautiful Pakistani girl, now her father is coming to see your home.
Your decorated home will be liked more than an undecorated home.
*Pro Tip: Use Canva dot com to make appealing banners and use Tiny PNG dot com to reduce the size to below 100KB. Canva is free, sign in with Facebook or Google Account free.

Step 5:


Proofread. Rewrite. Make your sentences more appealing to read.Focus on your first paragraph it is where that girl will be impressed, oh sorry, her father! The first impression is the last impression. If you come in front of him in underwear, forget that girl. Be a gentleman yar!

Step 6:


Promote. Promote. Promote. "Write and Pray Approach" doesn't work now. If you think if I write an amazing article, Google will help to bring traffic, it doesn't work 90% of the time. You need to promote. Use Quora, Facebook, Twitter, Youtube to promote your content with your brain, not like a spammer!
*If your article is based on a keyword that has a lot of searches, you should follow these 6 steps. You should not do with every article if it is not worth sharing.
[You have 100% right to post this article on your blog with the credit of Bloggers Funda, Cheers]

Monday, 23 October 2017

How To Protect Adsense Invalid Clicks Activity

How To Protect Adsense Invalid Clicks Activity, this is the most asked question in the group nowadays.
If you are working on Adsense for a while then you must hear or experience invalid clicks activity on your Adsense.
This is because you share your website's links with your friends or other online haters and they start bombing your Adsense because of any personal problem/issue with you.
You are not alone, This is not just your problem.
Almost everyone faces this problem, this is why the old guys of the field don't share their websites link with anyone and keep it hidden from online friends (especially from haters)
In order to be safe from this problem, you need to keep these things in your mind.
1) Don't share your website on facebook and don't give your haters a single chance to destroy your online business.
This way you won't face any problem (in many cases)
But !!!
But, this is not a permanent solution because your competitor could be your hater too.
So he can bomb your Adsense in order to destroy your earning source so may he can take your place.
or what you should do if your Adsense is already getting some Invalid Clicks?
How To Protect Adsense Invalid Clicks Activity
~~ HERE IS THE SOLUTION ~~

-- PROTECT ADSENSE INVALID CLICK ACTIVITY --

Okay, be ready for the solution.
Before Reading this solution Note that
  • This is a WordPress Plugin which provides the Solution.
  • So it would only work with WordPress.
  • If you are using blogger or any other platform then its time to move on the WordPress.

This Plugin Name is Adsense Click Fraud Monitoring Master.
Prevents you to be banned and excluded from your AdSense account due to malicious third party clicks on your website.
Why do you need it?
  • Prevent malicious clicks by bots on your Ads
  • Prevent malicious clicks by human user on you Ads
  • Prevent clicks by friends on your Ads who want to “help” you.
  • Prevent unintended clicks by your own
  • Block your own IP
  • Use custom name for your ad block class
  • Blocks a comma-separated list of specific IP´s including * detection of your own IP
  • Export all clicks to CSV
  • Export all blocked IP addresses to CSV
  • E-Mail notification for malicious activity on your site

How it protects your Adsense
  • Disable Ads when a user clicks multiple times on them
  • User will be banned and blocked for further clicks
  • Manual blocking by entering a list of several IP addresses
  • Automatic Unblocking of IP addresses
  • Support for third-party caches like W3 Total Cache, WP Rocket, WP Super Cache
  • See URL and path of clicked ads
  • Statistic and analytic: See all clicks on your ads, sortable by IP, URL and Time
  • Works, even without reloading (jQuery and Ajax)
  • Works with every Theme
  • E-Mail notification for blocked user
  • Activating and disabling of all Ads with one click
  • Use it in content, sidebars and widget sections
  • Simple installation and setup
  • No garbage left: Removes all plugin tables and settings in the WP database when uninstalled
  • Service and support by the author
  • Periodic updates and improvements.

…and the last but most important:
* It protects your AdSense Account from getting banned
How does it work?
The Plugin counts all clicks on your Ads. When the clicks exceed a specified number it will be deactivated and hidden. The clicking user or bot will be blocked on an IP basis for further clicks. At the same time, the plugin sends you a notification by email.

How to Setup?

Simply Install this plugin and it will provide you a code,
put that code before and after your Ad Code.
For Example:
<div class="cfmonitor">Your Ads Code Goes Here.</div>
That's it, Guys.
I Hope all of your queries are clear now
Best Of Luck.

Sunday, 22 October 2017

Best SEO Practices - Rank # 1 On Google

Step by step guide

No Technical skill is required for SEO.
I will try my best to make it as simple as possible.
It would be a written guide and after learning and proper implementing this guide, you can easily rank a medium competition keyword.
Practice is just to get some experience of SEO & all of your SEO related queries will be answered here in the group.
Here is what you will learn in this whole Guide.
I've divided the whole process of SEO into 5 Major Modules.
  • Module1: SEO BASICS (Getting Started with Seo)
  • Module2: NICHE RESEARCH
  • Module3: KEYWORD RESEARCH
  • Module4: ON PAGE SEO
  • Module5: OFF PAGE SEO
Now, let's dig deep into the details of each Module.

MODULE1: SEO BASICS (Getting Started with Seo)

As you know its BASIC SEO, so we will start from the very basic of SEO because many members even don't know What SEO is. How SEO works, and why you should choose SEO from the hundred of methods as your Professional Career.

MODULE2: NICHE RESEARCH

For Now, keep in your mind that Niche means Topic to understand what I'm talking about here.
In this Module, we will talk about Niche only,
What Niche is (in depth) all its Basics, Different Easy and Unique methods to Research for the Niche in no Time.
Niche Research is very important and Basic of SEO (Most People Ignores) because there are some niches which Google don't like,
So if you start SEO without knowing the Basics it can waste all of your Hard Work.
So make sure to Follow the Basics before going to the ON PAGE and OFF PAGE because this is a BIG misconception about SEO that OFF PAGE is all matter in SEO, which is not true you have to follow each and every step of SEO in order to get good Response from it.

Module3: KEYWORD RESEARCH

Here comes my all-time favorite Part, Keyword Research.
This module contains two parts, Keyword Research and Competition Analysis.
At First, we will talk about Keywords Research:
Keyword Research is a must thing before getting started into the SEO or before starting a new website you can say.
More than 50% SEO depends on the keyword research,
HOW?
if you start a website without keyword research your site can be lost on the internet, I'm saying this because I have seen many newbies quitting SEO just because they don't take Keyword Research Serious.
They did proper on-page and off-page of the website but the basic (keyword research) of the website was not on the right path/direction.
Keyword Research is something you need to put all of your attention before starting a new website otherwise your website/blog could be lost on the internet too.
In this Keyword Research Part, we will learn the different methods of Keyword Research, which keyword to take and which keyword to leave, types of keyword research and the basics of keyword research.
After keyword research, we will jump into the Competition Analysis Part.
Because it's much important to choose a Good Keyword otherwise your page can take up to 1 year to Rank well on Search engines.
So, in this part, we will have a look a Good and Bad Keywords, what to choose and what to leave, how to manually check keywords competition because keyword research tools are the myth.
After looking into the detail of all these factors then we will decide should you choose a keyword or leave.
Best SEO Practices - Rank # 1 On Google

Module 4: ONPAGE SEO

There are two types of SEO, ON PAGE and OFF PAGE.
This module is the longest Module of all the time and trusts me you will enjoy it.
This module is divided into the two main parts, Ranking Factors, and On page. I have added Ranking Factors part in this module because you must have knowledge about which things will help you in ranking and which thing can drop your rankings.
once you will get to know that these are the ranking factors then we'll move to the onpage. How you should write the article, what things to note while posting an article, How to optimize the content etc.

Module 5: OFPAGE SEO

there are more than 200 ranking factors in SEO but offpage is one of the strongest SEO factors, you can say ranking much much difficult without offpage seo or you can't rank a site without offpage.
That's it. this is how SEO Guide will work and I hope it would be much beneficial for you guys.
Let's Rock'n Roll and Grow together in SEO.

Tuesday, 8 November 2016

How to configure outlook email account

How to configure an outlook email account: 

Nowadays the Microsoft outlook is used as the email portal for getting emails on a desktop not always opening the browser and then opening the mail account every time so for that you need to download the office that includes the outlook in it. Once you download the office then you need to start configuring the outlook account. We set up Outlook 2010 to receive and send the emails of the account in outlook. Here you can follow the steps;

Step 1: First, open outlook 2010 on the computer next step is to add the email account.
Step 2: Click the file and then click on the Add Account.
Step 3: Then you can click on the "Manually configure server settings" and after that click on the next button.
Step 4: Click on "Internet E-Mail" and then click on the Next button.
Step 5: Then you need to provide the account information

User information
Name: Insert the full name
Email address: Insert the email address.
Server information
Account type: two options one is POP3 that means your email is downloaded in the outlook. otherwise, select IMAP your emails remain on the server.
Incoming Mail Server: mail.example.com
Outgoing Mail Server: mail.example.com

Login info
Username: email@example.com
Password: password of your email.

Here are the images you can view from them to get a better idea.

Step one:
How to configure outlook email account
Step two

How to configure outlook email account
Step 3

How to configure outlook email account

Step 4

How to configure outlook email account

Step 5


How to configure outlook email account



Step 6

How to configure outlook email account


Step 7

How to configure outlook email account



Step 8

How to configure outlook email account



Finish

How to configure outlook email account


This is it. Keywords Searched: outlook settings, outlook email settings, outlook 2010 help, create outlook account, google outlook, install outlook 2010, an outlook email server.

Tuesday, 20 September 2016

How to integrate Gantt Chart Jquery?

How to integrate Gantt Chart Jquery: Gant chart jquery is the plugin that is used to display the data in graphical user interface. Gantt Chart jquery plugin work on the almost every web browser Firefox 4+, Chrome 13+, Safari 5+, Opera 9+, IE 8+ also on some other web browsers the jquery Gantt Chart plugin works fine.

how to integrate gantt chart jquery?

Download Plugin

Click here To Download

Gantt Chart Jquery Plugin HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Site Title</title>
<meta name="keywords" content="<?php echo $meta_keywords ?>" />      
<link href="<?php echo CSS; ?>calendar.css" rel="stylesheet">
<!-- Set the path of files that are needed -->
<script src="<?php echo GANT_MASTER.'js/jquery.min.js' ?>"></script>
<script src="<?php echo GANT_MASTER.'js/dataDaysEnh.js' ?>"></script>
<script src="<?php echo GANT_MASTER.'js/dataHours.js' ?>"></script>
<link href="<?php echo GANT_MASTER.'css/style.css' ?>" rel="stylesheet">
<script src="<?php echo GANT_MASTER.'js/jquery.fn.gantt.js' ?>"></script>
<script src="<?php echo GANT_MASTER.'js/jquery.fn.gantt.min.js' ?>"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
</head>
<body class="overflow-hidden">
<div id="ganttChart"></div>
<br/><br/>
<div id="eventMessage"></div> 
</body> 

 Gantt chart Jquery Plugin Script

<script>
$(function() {
"use strict";
$("#ganttChart").gantt({
source: <?php echo $data; ?>,
// HERE $DATA IS THE JSON ARRAY OF THE SAME FORMAT THAT IS GIVEN BELOW IN SOURCE INDEX.
//    source :[
//            {
//                "desc":"596",
//                "name":"Duplex-2016-4-D-596",
//                "values":[{
//                        "from":"/Date(1464616800)/",
//                        "to":"/Date(1470837600)/",
//                        "desc":"Description",
//                        "label":"Example Value",
//                        "customClass":"ganttRed"
//                    }],
//            }],
// FROM AND TO SHOULD BE OF THE SAME FORMAT IF YOU HAVE DATE THEN //CONVERT INTO THE STRTOTIME.
navigate: "scroll",
scale: "days",
maxScale: "months",
minScale: "days",
itemsPerPage: 20,
scrollToToday:true,
useCookie: true,
onItemClick: function(data) {
//alert("Item clicked - show some details");
},
onAddClick: function(dt, rowId) {
alert("Empty space clicked - add an item!");
},
onRender: function() {
if (window.console && typeof console.log === "function") {
console.log("chart rendered");
}
}
});
$(".gantt").popover({
selector: ".bar",
title: "I'm a popover",
content: "And I'm the content of said popover.",
trigger: "hover"
});
prettyPrint();
});
</script>

Gantt Chart Jquery Plugin Php

$data = array(
"from" => "/Date(".(strtotime($val['dateOccupied'])*1000).")/",
"to"=> "/Date(".(strtotime($val['dateReleased'])*1000).")/",
"desc" => "Description",
"label" => $val['GuestFirstName']." ".$val['GuestLastName'],
"customClass" => "ganttRed",
);
return $data;
how to integrate gantt chart jquery? 

Gantt Chart Jquery Features


  • Gantt Chart can read the JSON data.
  • Gantt Chart can paging the results.
  • Gantt Chart displays different colours for each task.
  • Gantt Chart displays short description as hints.
  • Gantt Chart marks the holidays in graphical user interface.
Gantt Chart Jquery plugin is one of the famous plugin and mostly using the plugin so I here try to explain each and everything but If you find any difficulty just comment below I will help you in detail and as soon as possible. You can search for reading more material about by just writing the quries gantt chart jquery plugin, gantt chart jquery ui, gantt chart jquery free, html gantt chart jquery, bar chart in jquery, jquery gantt chart example, jquery gantt chart open source, javascript gantt and much more you will get the reading material of good quality. You can further study about php quries.
Quries in php ...!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

How to install and configure the xamp Server?

How to install and configure the xamp Server: Many developers and students that are getting into the PHP development they first need the local server for the development environment so that they can work in the development environment.
  • First of all, you have to download the xamp server. download link
https://www.apachefriends.org/index.html
  • Once you download the setup of xamp for your operating system then you can install by clicking next button. It will install with default settings.
  • After the installation completion,  you will run the xamp control panel .
Xamp is the package software that contains the Apache, Mysql, and FTP server.

How to install and configure the xamp Server?


  • Click the start button for `apache` and also for `MySQL`.
  • Then open the browser and write the localhost it will show this localhost page.
Now you have two main views one for MySQL database that you can access by
http://localhost/phpmyadmin/ 
Xamp is the standard software for all the developers and operating system that is used for the development. Create the PHP file then opens that file in browser by
http://localhost/myphp.php 
It will open the PHP file and you can start your development.

Common Issue xamp and skype conflict:

Whenever we are running the skype on the system then we run the xamp server so we get the conflict that the apache is not running. Because the both skype and xamp are using the same port number for solving this issue we can change the port number via in xamp or from skype we are changing the skype port number.

  • Go to Tools > Options > Advance > Connections
  • Then you can see the window appears like in below
How to install and configure the xamp Server?

Uncheck the box use port 80 and 443 for additional incoming connections. 
Write the port number that you like then you have to restart the server see the Apache server is running properly. You can search for reading more material about by just writing the queries how to configure xampp on windows 8, how to configure xampp on windows 7, down xampp, what folder do you use for projects in xampp?, localhost URL xampp, xampp tutorial pdf, localhost xampp not working, amp localhost, and much more you will get the reading material of good quality. You can read about more study of curves.
Queries in MySQL database...!
 
This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Mysql queries in php and codeigniter

Codeigniter is the PHP framework that uses the pattern for database records. This pattern allows information to be retrieved, inserted and updated in your database with minimal scripting. Database connections are too easy to connect with database most of the things are already done in the framework we will show you that in later tutorials. This framework uses the pattern of MVC that means model, view, and controller.
We can use the crud by using the MVC method.

Selecting Data
Inserting Data
Updating Data
Deleting Data

Mysql Quries in php and codeigniter

Usage of Mysql queries

these are the main quires in a database in MySQL, code igniter or any other language every time most of the user interact with these quires.
Select Query: Select query is used for the selection of data from MySQL database table and use it in any other place where you require the data. Like in web application, the user profile data that displayed on this profile front end that is saved in the database and select query select the user profile data and bring in the view and developer show that data in appropriate place.
Insert Query: Insert query is used to insert/save the data in a database so that the user can retrieve and manipulate the data when he needed. Like in web applications the user came on the site and him sign-up on the website then he adds the data of a user in the database. He can access that data when he required it.
Update Query: Update query is used to update the records that are already inserted in the database when the user require this. Like in web applications the user have the access that he can edit his profile so the data need to be updated in the database also.
Delete Query: Delete query is used to delete the records from the database when data became raw for a user. Like if someone wants to close his account or he wants to cancel his order for some item that he ordered then the data needed to be deleted from the database.

All these queries have little bit different syntax in different languages but have the same concept and logic. Near about every web application uses the database for saving manipulating and retrieving the data from a user and perform actions on it. The database is the part of the application. You can search for reading more material about by just writing the queries MySQL w3, MySQL queries pdf, MySQL queries examples, MySQL queries interview questions, MySQL queries list, MySQL queries interview questions and answers pdf, MySQL join queries, MySQL queries tutorial and much more you will get the reading material of good quality. Next post of MySQL database queries.
Different types of queries with examples...!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Monday, 19 September 2016

Fetch JSON Data Insert into Mysql table in PHP

Fetch JSON Data  Insert into MySQL table in PHP: Hello friends today we are going to learn the very basics of JSON data, MySQL and PHP that we will get the JSON data and then read JSON through the PHP script and after that insert the JSON formatted data into the MySQL database.

What are JSON and data format of JSON File ?

JSON is the abbreviation of JavaScript Object Notation is a lightweight data-interchange format that is used for the storage of data. More easy to read the data then the data is in the XML format. JSON type of data is supported all popular browser nowadays.

Example of JSON Data Format

The is the JSON format where every each entry is the pair of key and value in the object format. Where file name is myson.json.
[
    {
    "name": "Mike",
    "Age": "23",
    "Gender": "Male",
    "Country": "U.S"      
},
{
    "name": "Thomous",
    "Age": "21",
    "Gender": "Male",
    "Country": "U.S"      
},
{
    "name": "Johan",
    "Age": "22",
    "Gender": "Male",
    "Country": "U.S"      
}
]

This is the JSON formatted data  that is about the persons whose names, ages, genders, and countries are mentioned here we are going to insert into the MySQL database. In next steps, we will read the data and insert into the MySQL database table.

Step 1: Connect PHP to MySQL Database

Now the first step is we have to connect the PHP to MySQL by using the mysqli_connect()  function. So that we can insert our data into the MySQL database easily.
<?php  
$connect = mysqli_connect('localhost','root','');
mysqli_select_db($connect, 'json_db');
?>
 This PHP code will connect the PHP to MySQL database where the database name is "json_db" and then we will get the JSON data and insert into the table.

Step 2: Read the JSON file using PHP

Next step is to read the JSON file data and put that in the PHP variable so that we can read and manipulate the data according to our requirements. Well in PHP getting the data from the file to PHP variable is simple by using the file_get_contents() this function will read the whole JSON file and return the string. See usage in PHP 
<?php
    //read the json file contents
    $jsondata = file_get_contents('myjson.json');
?>
Where myjson.json is the JSON file that contains the content. $jsondata is the variable that contains the JSON file data. You can see by printing the data by just 
echo"<Pre>";print_r($jsondata); exit;
 This will print the JSON string.

Step 3: Convert JSON String to Php Array

Until we do not convert the string to PHP array either associative or any other type of array we can not manipulate the operations on the data so for that we are going to convert the string to the associative array we use the PHP function json_decode().
<?php
    //convert json object to php associative array
    $data = json_decode($jsondata, true);
?>
First parameter $jsondata is the variable that contains the string which is decode to an array and  the second true is used to convert into an associative array. If we print the $data then it is converted into associative array see the image below.
Fetch JSON Data & Insert into Mysql table in PHP

Here you can see the PHP coding directory files and the flow of the system. See the image below.

Fetch JSON Data & Insert into Mysql table in PHP

Step 4: Extract the Array Values

Now we will extract the array elements one by one and the insert that data elements into the MySQL database. Hope you are understanding the things right away. See the code.
<?php
foreach($data as $d_key => $d_val){              
            $id= $i++;
            $name = $d_val['name'];
            $age = $d_val['Age'];
            $gender = $d_val['Gender'];
            $country = $d_val['Country'];
}
?>
This is an extraction of an array into another array with the indexing and is used to insert data to MySQL database as my database name is json_db and I am now creating the table I attached the image below see and you can create your own data types of table.

Fetch JSON Data & Insert into Mysql table in PHP

Step 5: Insert JSON to MySQL Database with PHP Code

Now we have to insert the JSON data to the MySQL database using the PHP so that we can save our JSON data to the database and then can perform operations on that data. Here is the code of all the program.
<?php
$connect = mysqli_connect('localhost','root','');
mysqli_select_db($connect, 'json_db');
    //read the json file contents
    $jsondata = file_get_contents('myjson.json');
    //convert json object to php associative array
    $data = json_decode($jsondata, true);
    $i = 0;
    foreach($data as $d_key => $d_val){              
            $id= $i++;
            $name = $d_val['name'];
            $age = $d_val['Age'];
            $gender = $d_val['Gender'];
            $country = $d_val['Country'];      
     
        $query = "insert into person_info(name, age, gender, country) "
                . "values('$name','$age','$gender','$country')";
//        echo"<pre>";print_r($query);exit;
        if(mysqli_query($connect, $query)){
            echo "Records added successfully.";
        } else{
            echo "ERROR: Could not able to execute .$query " . mysqli_error($connect);
        }//end of else
    }//end of foreach loop      
?>
You can see the image of code and then the data that is inserted into the database so that all the things just damn clear to you.

Fetch JSON Data & Insert into Mysql table in PHP


Fetch JSON Data & Insert into Mysql table in PHP

 This is it. I hope this tutorial will help you if you people get any type of issue you can contact here and ask a question we will follow up and gave feedback soon. You can search with this query how to insert JSON data into MySQL using PHP, insert JSON into MySQL java, insert JSON into MySQL-python, store JSON data in MySQL, how to store JSON data in MySQL using java, JSON to MySQL table, insert JSON into MySQL, MySQL select JSON and much more and you will get the reading material of other websites. You can further read about earn money from the internet.
How you can earn money from the internet...!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Linux Basic Commands

Linux Basic Commands: This will help you the basic concepts about the Linux Command Line, Terminal, and commands that run on the terminal and then you will be able to do everything using the terminal.

Linux Basic Commands Overview:

Before the windows operating systems mean GUI base systems, people were using and controlling the computer systems by the punch cards, that is the set of commands in the card and run the commands. After that, the command prompt is the one that the people were using for controlling the computer system either for copying the file, deletion of files, run or execute some program file they use the command prompt for each and every purpose. After that, the Microsoft launch the windows Operating system that is totally graphical user interface based. In Linux versions, there is also few graphical user interface operating systems that do the most of the work using graphical user interface but the terminal is more powerful.

Linux Basic Commands:

how can we "List Files" using Terminal:

When we open the terminal the current folder is the path in the terminal, If we want to show the list of folder and files listed in them then we can show files ls command and get more detail by adding more parameters to the command. Like ls -t is used for the list of file sorted by time, ls -S will sort the file by file size, and ls -r will show the reverse of the order.

show list directories using linux terminal

How can we "Change Directories" using Terminal:

If you want to change the directories mean the move from one folder to another folder then we can use the "cd" command and ".." folder. By using these we can move up to the directory and move ahead to the directory structure.  There are two types of commands one relative path and other is an absolute path. When we type the following command it switches to the directory directly above the current one folder. 
cd .. 
Absolute command means that in current directory have the folder name documents then we can go into by typing the following command.
cd Documents
We can show the current directory full path from root directory to the current directory by writing the following command
cd -
See the image below that will explain you more detail about it.

changing directories using linux / ubuntu terminal 

How can we "create or remove folders" using Terminal:

In Linux / Unix we can create the folders from Graphical User Interface but here we are teaching you the terminal. So we can create new folders and we can remove new folders. For creating the new folder with the user defined name, the command is 
mkdir my_test_folder
 We can now remove the folder that is just created by the command and can be removed by the command only is there is no data inside the folder.
rmdir my_test_folder
 You will have to remove / delete those files that are inside the folder and then you will be able to delete the folder.
See the image for detail. This will more clear the things to you.

create and remove directories using terminal

How can we "Create and remove files" using Terminal:

This is the simple one to create and remove the file using Linux / Ubuntu Terminal. It uses the following command.
touch test_file
to create the new, blank file and same for deleting the filing process is same write the command that is
rm test_file
Here we can delete the all files at once by using the "*" in the parameter that will delete all files. The command is:
rm *
Now if someone wants to delete all the files and sub files in the folders / directories he can use the -r parameter that means recursive(re-run) and sometimes the system does not allow the user to delete the file then you can use -f that means force the operation.
rm -f test_file
See the image for detail. This will more clear the things to you.

create or remove the files using terminal

How can we "Edit Plain Text Files" using Terminal:

Actually, the users use the different editor for editing the text files in the Linux / Ubuntu operating systems. So for beginners, the simplest one is to edit text files using nano command. The command is:
nano test_files 
 This will open the nano file editor then you will type the context and press ctrl + x it will say you for save the files press enter button. See the image for detail. This will more clear the things to you.

nano file edit command using terminal

You can edit your text file in vim by using the following command.
vi new_file

How can we "Display files" using terminal: 

When we create the text file that may have more text and we want to show more text in the terminal while opening the file so we can view more data in the file. For that purpose, we use the command
more new_file
 See the image for detail. This will more clear the things to you.

Linux Basics Commands

How can we "Use History" using Terminal:

The history is one of the most important and amazing factors in the terminal that it is saving your commands in the history so that when you want to see that you can access that by the history commands. The command is just written history in the terminal.
history
  See the image for detail. This will more clear the things to you.

history using Linux / Ubuntu terminal

How can we "Find Files" using Terminal:

For finding any file directory the find in Linux / Ubuntu is the very powerful command that finds on your system. For Example: if you need to find all the files that are with the .txt extension then you can use the following command.
find . -name "*.txt" 
find command using Linux / Ubuntu Terminal

How can we "Find a Text String in Files" using Terminal:

Finding text in the files directories and sub-directories the Grep is the command that will search the text that you want to search. The command will search for all files. The command is
grep -ir "hello" *
  See the image for detail. This will more clear the things to you.

text search using the Linux / Unix / Ubuntu terminal

Moving files from one folder to another you can use the "mv" is used and for copying of file "cp" is used. See example Hope you understand now most of the things.
mv image imagefolder
cp image ../
 If you still have any problem, query then you can ask here directly we will response you quickly. You can search with these queries Linux basic commands with examples pdf, Linux tutorial, Linux basic commands pdf, Linux basic commands with examples, Linux basic commands tutorial, red hat linux basic commands pdf, linux basic commands ppt, linux basic commands with examples ppt and much more for learning material. You can further read about json data insertion.
Json data insertion into mysql...!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Sunday, 18 September 2016

How to install and configure LAMP server on Linux / Ubuntu ?

How to install and configure LAMP server on Linux / Ubuntu: Lamp server is an open source web development platform/software package that is for the Linux / Ubuntu users. The lamp is the software package that includes the Apache as the web server, MySQL as the relational database for development of applications and the PHP is used as scripting languages (object-oriented ). There may be used some of the other scripting languages like python, Perl or other languages that using the Apache server. So the Lamp server components can be changeable for the different table for different environments and install different programming language.

Install Lamp in Linux / Ubuntu From Start :

In this guide, I will teach you how to install Lamp system. Lamp stands for Linux, Apache, MySQL and PHP this is the lamp software package where the PHP can be interchangeable. In the Linux/Ubuntu the package of software installed by using commands using the terminal.

Install Apache:

Let's start the installation process first, install the Apache.

Step 1) Open your terminal either by clicking the icon of terminal or by pressing the shortcut key
( Alt+Ctrl+t ).
Step 2) Write the line of code or paste it into the terminal and then press the enter key.
sudo apt-get install apache2
Step 3) Then the terminal will ask you for your system password, type the password and press enter button.

Test Apache installation:

To make sure that we have installed the Apache  server successfully we now test it.

Step 1) Open browser ( browser that you have installed on your system ) and write or copy-paste the below line in the web address bar:
http://localhost/
or
127.0.0.1/
You should see the folder named Apache2-default/. Open the folder it will say "It works" congratulation to you for first step completion.

Install PHP:

In this part of the tutorial, we will install the PHP version 5.

Step 1) Again Open your terminal either by clicking the icon of a terminal or by pressing the shortcut key ( Alt+Ctrl+t ).
Step 2) Write the line of code or paste it into the terminal and then press the enter key:
sudo apt-get install php5 libapache2-mod-php5
Step 3) For PHP to work and compatible with the Apache server we have to restart the Apache server.
Type the command/code in Terminal to do this:
sudo /etc/init.d/apache2 restart
Now PHP installation completed and we will test that the PHP is installed successfully of not.

Test PHP: 

A quick test runs to ensure that the PHP version 5 installed successfully. Here one important thing in some of the Linux versions the /www/html/ is the default path set. so we will create the file in the HTML folder or have to change the path.
Step 1) Write the line of code or paste it into the terminal and then press the enter key:
sudo gedit /var/www/html/testphp.php

How to install and configure LAMP server on linux/ubuntu ?

Step 2) Then open the file copy paste the code or you may be can type anything of PHP.
<?php phpinfo(); ?>
Step 3) Save and close the testphp.php file.
Step 4) Now open your web browser and copy paste or write the link in web address bar.
http://localhost/testphp.php
How to install and configure LAMP server on linux/ubuntu ?

This image will be displayed and detail of the PHP.

Install MySQL:

Last Lamp component that is MySQL software is remaining to install. 
Step 1) Again open the terminal and copy-paste or write the code in the terminal.
sudo apt-get install mysql-server
Step 2) Terminal will ask you for the password write the password and enter.
Step 3) MySQL root user require the password to set. Then set the root password.
That's it.

Test MySQL: 

Now we can test that the MySQL installed correctly or not so PHPMyAdmin is the admin panel.
Step 1) Open the web browser and enter the code in the web address bar that is URL.
http://localhost/testphp.php
Now if there is something wrong then follow some steps.

Open the terminal and copy and paste the code and press enter.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo service apache2 restart
Then again open browser and copy paste the URL in the address bar.
http://localhost/testphp.php
How to install and configure LAMP server on linux/ubuntu ?

That's it. Lamp server is not installed on the Linux mint 17.3 and Ubuntu. If you people have still any query about an installation of lamp software package feel free to ask here in the comment. You can google search for more reading about the lamp server search with quries run lamp server ubuntu, install lamp ubuntu 14.04 server, ubuntu lamp, linux install lamp, how to run lamp in ubuntu, lamp commands, install lamp ubuntu 15, best linux lamp server and much more. We will solve it and inform you quickly. You can further study about the how you can earn money online.
How you can earn money online?

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Saturday, 28 May 2016

How to upload image in php?

How to upload image in PHP

How to upload image in PHP

Hello, friends today we are going to learn about the submission of forms with files. This is too easy and simple while you are doing coding. so don't be afraid it's simple and easy programmatically I will teach you here each and every step in detail. so your concepts will be clear.

while you are working in PHP first you need to start your server so that the code will be run on the server. So I assume that you now the server and know how to start the server and run your code in that.

How to upload image in php?

HTML

<html>
<head>
<title>A simple example of uploading a file using PHP script</title>
</head>
<body>
<b>Simple example of uploading a file</b><br />
Choose a file to be uploaded<br />
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file" size="50" />
<input type="text" name="ASDF" size="50" />
<br />
<input type="submit" value="Upload" />
</form>
</body>
</html>

PHP

You can upload the file using the PHP in the folder which you gave the path and you also need to save the name of a file in the database table so that you can then use the name again.

<?php
 if(!empty($_FILES['file'])){
    $targetfolder = "assets/";
    $file_name = $_FILES['file']['name'];
    $file_temp = $_FILES['file']['tmp_name'];
    echo "<pre>";print_r($_FILES);
    if($_FILES['file']['error'] == 0){
        move_uploaded_file($file_temp, $targetfolder.$file_name);  
        echo "The file ". $_FILES['file']['name']. " is uploaded";  
    }
    else {
       echo "Problem uploading file";
    }
 }
 ?>

Now this is the easiest way to upload the file in custom PHP that is you require the
  • file_name 
  • file_temp 
  • target folder 
and the PHP function move_upload_file which take the arguments and upload the file. also remember that the path you provide should be writeable. You can search with these queries in google for studying more material. Search for these strings upload image PHP tutorial, upload image PHP example, upload image PHP MySQL, upload image PHP MySQL tutorial, upload image Php jquery, upload image PHP stack overflow, android upload image PHP, PHP image upload script and much more can help you for searching the things. You can further read about the configure and install lamp server.
Configure Lamp server..!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.

Friday, 4 March 2016

How to import csv file in mysql using codeigniter?

How to import CSV file into MySQL using Codeigniter?

The people have fear about something like new developer if he had not done some task he first thought that can I do it or not. Here I am telling you everything you do consistently and with patience then you will achieve the target. We explain you the things in simplest words so that you can get the idea how it works. Basically, for Codeigniter, I explain the example in three parts for import CSV file in MySQL using Codeigniter framework. Simple and easy way to work within the Codeigniter that is why the lot of developers working in Codeigniter.

1) View
2) Controller
3) Model

how to import csv file in mysql using codeigniter?

STEP ONE

View:

<form action ="" method="post">
 <input type="file" accept=".csv">
</form>

STEP TWO

Controller:

Import CSV library in controller
$this->load->library('csvimport');
Call model function.

STEP THREE

Model:

In model initialize configs and then load the upload library then initialize the config.
$config['upload_path'] = './assets/order_files/';
$config['allowed_types'] = 'csv';
$config['max_size'] = '*';
$this->load->library('upload');
$this->upload->initialize($config);
// If upload failed, display error
if (!$this->upload->do_upload('upload')) {
     $data['error'] = $this->upload->display_errors();        
} else {
$file_data = $this->upload->data(); 
This line will hold all the information about the  file. like name, type, content type etc.
$file_path =  './assets/order_files/'.$file_data['file_name'];
$file_path =  './assets/order_files/'.$file_data['file_name'];
This will hold the file path
if ($this->csvimport->get_array($file_path))
{
    $csv_array = $this->csvimport->get_array($file_path);
    foreach ($csv_array as $row){       $insert_data = array(
        'firstName' => $row['fname'] ,
        'lastName' => $row['lname'],
        'Email' => $row['email'],
}
$q = $this->db->insert('table_Name', $csv_array);
How to import csv file in mysql using codeigniter

That's it. Simple and easy with Codeigniter. You can search with other search queries like import CSV file into MySQL in Codeigniter, Codeigniter CSV import library, CSV upload in Codeigniter, CSV import in Codeigniter example, Codeigniter import CSV file to database, how to import CSV file into database using PHP, Codeigniter export CSV file you get the other sites links for help also. If you have any query you can ask here in a comment box. I will response to your queries. You can further read about the image uploading that how you can upload the image on a server.
How to upload image in PHP...!

This Post Was Last Updated On September 30, 2016, By Author: Mahira Khan.