<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8258018297549039692</atom:id><lastBuildDate>Thu, 19 Dec 2024 03:27:09 +0000</lastBuildDate><category>PHP</category><category>Jquery</category><category>My SQL</category><category>C</category><category>WordPress</category><category>ASP.NET</category><category>UBUNTU</category><category>JavaScript</category><category>CI</category><category>CSS</category><category>DevOps</category><category>Interview Questions and Answers</category><category>Linux</category><category>MVC Frameworks</category><category>ReactJs</category><category>AWS</category><category>AnuglarJs</category><category>CodeIgniter</category><category>HTML</category><category>Laravel</category><category>Magento</category><category>PHPJobs</category><category>Python</category><category>ReactJs Hooks</category><category>SytaxHighlighter</category><category>get and post</category><title>Ikhlaque Ahmed - Programming Blogs</title><description>The key difference when you are developing and writing, is who you are writing for. The code you write is generally for yourself to reuse as and when need be. When you write, you write for an audience who will use your content and develop on them. 

This is my tryst to put down my learnings for others to use. And while doing so, refine those learnings making it beginner friendly.</description><link>http://checkconcept.blogspot.com/</link><managingEditor>noreply@blogger.com (iamikhlaque)</managingEditor><generator>Blogger</generator><openSearch:totalResults>108</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:summary>The key difference when you are developing and writing, is who you are writing for. The code you write is generally for yourself to reuse as and when need be. When you write, you write for an audience who will use your content and develop on them. This is my tryst to put down my learnings for others to use. And while doing so, refine those learnings making it beginner friendly.</itunes:summary><itunes:subtitle>The key difference when you are developing and writing, is who you are writing for. The code you write is generally for yourself to reuse as and when need be. When you write, you write for an audience who will use your content and develop on them. This is</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-2174643834237569681</guid><pubDate>Wed, 05 Oct 2022 09:17:00 +0000</pubDate><atom:updated>2022-10-05T02:17:09.128-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ReactJs</category><category domain="http://www.blogger.com/atom/ns#">ReactJs Hooks</category><title>ReactJs Top Hooks List </title><description>&lt;p&gt;&amp;nbsp;In today article we are going to show you some reactjs hooks which can help you to increase your reactjs knowledge.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;What is hooks?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4d5156; font-family: arial, sans-serif;"&gt;&lt;span style="background-color: white; font-size: 14px;"&gt;Hooks are a new addition in React 16.8.&amp;nbsp; It allows you to use state and other React features without writing a class. Hooks are the functions which "hook into" React state and lifecycle features from function components.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Following are some hooks which are most useful for you&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;1. useState Hook&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;React useState() is a built in hooks or function which comes with React library. When you want to use “useState” you need to first import in your application using following code sample.&amp;nbsp;&amp;nbsp;useState() only work with functional components. This will not work with Class components in React.&lt;/p&gt;&lt;p&gt;&lt;span style="color: #3d85c6; font-size: medium;"&gt;&lt;a href="https://www.developerdiary.in/what-is-usestate-hook-in-react-with-example/"&gt;Visit original article here&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;2. useEffect Hook&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The useEffect() hook allows us to run side effects on your functional components. Side effects is a general concept about how functions behave which are not predictable. A function is supposed to have side effects when it tries to change something outside of its body. useEffect() also can perform data fetching side-effect using API.&lt;/p&gt;&lt;p&gt;&lt;a href="https://www.developerdiary.in/what-is-useeffect-hook-in-react-with-simple-example/"&gt;&lt;span style="font-size: medium;"&gt;Visit original article here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;3. useContext Hook&lt;/span&gt;&lt;/p&gt;&lt;p&gt;In simple definition react context is use to handle state globally without using or pass any props in the components. Lets understand why and how we can use “useContext()” hook in our program.&lt;/p&gt;&lt;p&gt;&lt;a href="https://www.developerdiary.in/what-is-usecontext-hook-in-react-with-simple-example/"&gt;&lt;span style="font-size: medium;"&gt;Visit original article here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;4. useQuery Hook&lt;/span&gt;&lt;/p&gt;&lt;p&gt;React Query provides us with custom hooks like “useQuery” for retrieving data. Under the hood, these hooks do a lot of things such as caching data after initial retrieval, fetching data in the background, etc.&lt;/p&gt;&lt;p&gt;&lt;a href="https://www.developerdiary.in/what-is-usequery-react-query-with-example/"&gt;&lt;span style="font-size: medium;"&gt;Visit original article here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: medium;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://checkconcept.blogspot.com/2022/10/reactjs-top-hooks-list.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-3987462570493562399</guid><pubDate>Thu, 14 Jul 2022 12:39:00 +0000</pubDate><atom:updated>2022-07-14T05:39:27.513-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CodeIgniter</category><category domain="http://www.blogger.com/atom/ns#">Interview Questions and Answers</category><category domain="http://www.blogger.com/atom/ns#">MVC Frameworks</category><title>Latest CodeIgniter interview questions and answers</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://www.developerdiary.in/wp-content/uploads/2022/07/codeigniterinterviewquestionsanswers-930x620.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="533" data-original-width="800" height="533" src="https://www.developerdiary.in/wp-content/uploads/2022/07/codeigniterinterviewquestionsanswers-930x620.jpg" width="800" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="81ee"&gt;Are you looking jobs in CodeIgniter? Then you are at the right place. We provide you with the best CodeIgniter interview Question and Answers in this article blog. CodeIgniter is an open-source software rapid development web framework, for use in building dynamic web sites with PHP. CodeIgniter is loosely based on the popular model-view-controller (MVC) development pattern. There are numerous leading companies that offer lots of job positions in CodeIgniter like PHP Developer with CodeIgniter Frame work, Senior PHP Developer, Backend Developer CodeIgniter etc.&lt;/p&gt;&lt;p class="graf graf--p" name="cb75"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q1. Explain Codeigniter Architecture?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="fb23"&gt;CodeIgniter is designed to deliver maximum performance in less time within a clean environment. To achieve this, each developing process is designed in a simplified way.&lt;/p&gt;&lt;p class="graf graf--p" name="4b9f"&gt;From technical point of view it is dynamically instantiation (libraries are loaded on request which makes it light-weighted), loose coupling. (components rely very less on each other) and component singularity (each class and its functions are narrowly focused only towards their purpose).&lt;/p&gt;&lt;p class="graf graf--p" name="1a6f"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q2. Explain MVC in CodeIgniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="fca7"&gt;CodeIgniter framework is based on MVC pattern. MVC is a software that gives you a separate logical view from the presentation view. Due to this, a web page contains minimal scripting.&lt;/p&gt;&lt;ul class="postList"&gt;&lt;li class="graf graf--li" name="93da"&gt;&lt;strong class="markup--strong markup--li-strong"&gt;Model&lt;/strong&gt; — The Controller manages models. It represents your data structure. Model classes contain functions through which you can insert, retrieve or update information in your database.&lt;/li&gt;&lt;li class="graf graf--li" name="2ede"&gt;&lt;strong class="markup--strong markup--li-strong"&gt;View&lt;/strong&gt; — View is the information that is presented in front of users. It can be a web page or parts the page like header and footer.&lt;/li&gt;&lt;li class="graf graf--li" name="d65e"&gt;&lt;strong class="markup--strong markup--li-strong"&gt;Controllers&lt;/strong&gt; — Controller is the intermediary between models and view to process HTTP request and generates a web page. All the requests received by the controller are passed on to models and view to process the information.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="graf graf--p" name="0f15"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q3. What is model and how you can load model in CodeIgniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="a0c0"&gt;The Controller manages models. It represents your data structure. Model classes contain functions through which you can insert, retrieve or update information in your database.&lt;/p&gt;&lt;p class="graf graf--p" name="817a"&gt;models are loaded as well as called inside your controller methods. For loading a model, you must use the below-given method:&lt;/p&gt;&lt;pre class="graf graf--pre" name="a1b9"&gt;&lt;code class="markup--code markup--pre-code"&gt;$this-&amp;gt;load-&amp;gt;model('modelName');&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="6f74"&gt;Include the relative path from the directory of your model, if your model is placed inside a &lt;strong class="markup--strong markup--p-strong"&gt;sub-directory&lt;/strong&gt;. Consider an example, you have a model which is placed at application/models/author/AllAuthor.php you can load it by using: &lt;strong class="markup--strong markup--p-strong"&gt;$this-&amp;gt;load-&amp;gt;model(‘author/AllAuthor’);&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="5aba"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q4. How can you connect models to a database manually?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="8757"&gt;Using following syntax you can load the database.&lt;/p&gt;&lt;pre class="graf graf--pre" name="4a69"&gt;&lt;code class="markup--code markup--pre-code"&gt;$this-&amp;gt;load-&amp;gt;database();&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="66e8"&gt;There is another method available which is automatice for that you have to add database library in autoload.php&lt;/p&gt;&lt;p class="graf graf--p" name="cff8"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;pre class="graf graf--pre" name="8439"&gt;&lt;code class="markup--code markup--pre-code u-paddingRight0 u-marginRight0"&gt;&lt;strong class="markup--strong markup--pre-strong"&gt;Path : application/config/autoload.php &lt;/strong&gt;$autoload['libraries'] = array('database');&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="cc46"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q5. Explain view in CodeIgniter and how we can load the view?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="2e2d"&gt;View folder contains all the markup files like header, footer, sidebar, etc. They can be reused by embedding them anywhere in controller file. They can’t call directly, and they have to be loaded in the controller’s file.&lt;/p&gt;&lt;p class="graf graf--p" name="7111"&gt;You can create file in &lt;strong class="markup--strong markup--p-strong"&gt;application/views&lt;/strong&gt; folder. For &lt;strong class="markup--strong markup--p-strong"&gt;example&lt;/strong&gt;, we have created a file Welcome.php,&lt;/p&gt;&lt;p class="graf graf--p" name="7ec0"&gt;You can call this Welcome.php view file in controller using below code.&lt;/p&gt;&lt;pre class="graf graf--pre" name="91d3"&gt;&lt;code class="markup--code markup--pre-code"&gt;&amp;lt;?php defined('BASEPATH') or exit('No direct script access allowed'); class Index extends CI_Controller { public function __construct(){ parent::__construct(); } public function index(){ $this-&amp;gt;load-&amp;gt;view('welcome'); } }&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="c07c"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q6. How will you call a constructor in CodeIgniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="05b0"&gt;We will call constructor in CodeIgniter using below method&lt;/p&gt;&lt;p class="graf graf--p" name="b0fb"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;pre class="graf graf--pre" name="fb84"&gt;&lt;code class="markup--code markup--pre-code u-paddingRight0 u-marginRight0"&gt;&amp;lt;?php defined('BASEPATH') or exit('No direct script access allowed'); class Index extends CI_Controller { public function __construct() { &lt;strong class="markup--strong markup--pre-strong"&gt;parent::__construct();&lt;/strong&gt; } }&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="6fbf"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q7. Explain the basic Url Structure in Codeigniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="5b78"&gt;The basic URL structure is developerdiary.in/class/function/ID.&lt;/p&gt;&lt;p class="graf graf--p" name="f61c"&gt;In this class represents controller’s class that needs to be invoked.&lt;br /&gt;&amp;nbsp;“ &lt;strong class="markup--strong markup--p-strong"&gt;function&lt;/strong&gt;” is name of method which is called.&lt;br /&gt;“ &lt;strong class="markup--strong markup--p-strong"&gt;ID:&lt;/strong&gt; is an additional parameter that is passed to controllers.&lt;/p&gt;&lt;p class="graf graf--p" name="6af5"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q8. What is the default method name in CodeIgniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="ca09"&gt;By default controller call index method. If you want call another method then you shoud define this method in controller and call in the url&lt;/p&gt;&lt;p class="graf graf--p" name="a8ce"&gt;deveoperdiary.in/ControllerName/ &lt;strong class="markup--strong markup--p-strong"&gt;YourCustomFunctionName&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="c740"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q9. What is a helper in CodeIgniter?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="b905"&gt;Helpers are the group of functions that are used to assist the user to perform specific tasks.&lt;/p&gt;&lt;ul class="postList"&gt;&lt;li class="graf graf--li" name="8a93"&gt;URL Helpers: used to create the links.&lt;/li&gt;&lt;li class="graf graf--li" name="e62f"&gt;Text Helpers: used for text formatting.&lt;/li&gt;&lt;li class="graf graf--li" name="1a97"&gt;Cookies Helpers: used for reading and setting cookies.&lt;/li&gt;&lt;/ul&gt;&lt;p class="graf graf--p" name="d4ea"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Q10. How can you load multiple helper files?&lt;/strong&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="c6ee"&gt;Using following sample code we can load multiple helper.&lt;/p&gt;&lt;pre class="graf graf--pre" name="44ee"&gt;&lt;code class="markup--code markup--pre-code"&gt;$this-&amp;gt;load-&amp;gt;helper( array('helper1', 'helper2', 'helper3', 'helperxxxxx') );&lt;/code&gt;&lt;/pre&gt;&lt;p class="graf graf--p" name="aa7a"&gt;Feel free to&lt;strong class="markup--strong markup--p-strong"&gt; &lt;/strong&gt;&lt;a class="markup--anchor markup--p-anchor" data-href="https://heydevelopers.medium.com/" href="https://heydevelopers.medium.com/" rel="noopener" target="_blank"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;Subscribe &lt;/strong&gt;&lt;/a&gt;for more content &#128276;, &lt;strong class="markup--strong markup--p-strong"&gt;clap&lt;/strong&gt; &#128079;&#127995; and &lt;strong class="markup--strong markup--p-strong"&gt;share the article &lt;/strong&gt;With anyone you’d like.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="graf graf--p" name="e782"&gt;&lt;strong class="markup--strong markup--p-strong"&gt;&lt;em class="markup--em markup--p-em"&gt;Originally published&lt;/em&gt;&lt;/strong&gt;&lt;em class="markup--em markup--p-em"&gt; at &lt;/em&gt;&lt;a class="markup--anchor markup--p-anchor" data-href="https://www.developerdiary.in/codeigniter-interview-questions-and-answers/" href="https://www.developerdiary.in/codeigniter-interview-questions-and-answers/" rel="noopener" target="_blank"&gt;&lt;em class="markup--em markup--p-em"&gt;https://www.developerdiary.in&lt;/em&gt;&lt;/a&gt;&lt;em class="markup--em markup--p-em"&gt; on July 13, 2022 here you will get more interview questions and answers. &lt;/em&gt;&#129311; &#129304; &#129305;&#128591;&#127996;&lt;/p&gt;</description><link>http://checkconcept.blogspot.com/2022/07/latest-codeigniter-interview-questions.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-4065847800230966387</guid><pubDate>Fri, 08 Jul 2022 19:17:00 +0000</pubDate><atom:updated>2022-07-08T12:17:06.781-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DevOps</category><category domain="http://www.blogger.com/atom/ns#">Interview Questions and Answers</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">PHPJobs</category><title>Function Overloading And Overriding In PHP</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://www.developerdiary.in/wp-content/uploads/2022/07/function-overloading-930x620.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="533" data-original-width="800" height="533" src="https://www.developerdiary.in/wp-content/uploads/2022/07/function-overloading-930x620.jpg" width="800" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;Function overloading and overriding is the Object Oriented Programming feature in PHP. Function overloading means multiple function have the same name but different parameters. But in case of function overriding, more than one functions will have same method signature and number of arguments.&lt;/p&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;PHP doesn’t support function overloading directly like other languages such as C++, JAVA etc. But we can overcome this issue with using the PHP magic method __call(). So let’s see how overloading and overriding in PHP works.&lt;/p&gt;&lt;h2 style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: var(--h2fontsize); font-weight: var(--h2fontweight); line-height: var(--h2lineheight); margin: 0px 0px 30px; padding: 0px; text-transform: var(--h2texttransform);"&gt;Function Overloading In PHP&lt;/h2&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;Function overloading contains same function name and that function performs different task according to number of arguments.&lt;/p&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;pre class="wp-block-code" style="box-sizing: border-box; color: #020202; font-family: Courier, monospace; font-size: 0.9em; margin-bottom: 20px; margin-top: 20px; padding: 30px; white-space: pre-wrap;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-radius: 5px; border: 0px; box-sizing: border-box; color: #333333; display: block; font-family: inherit; overflow-wrap: break-word; padding: 0px 3px;"&gt;&amp;lt;?php
   class Shape {
      const PI = 3.142 ;
      function __call($name,$arg){
         if($name == 'area')
            switch(count($arg)){
               case 0 : return 0 ;
               case 1 : return self::PI * $arg[0] ;
               case 2 : return $arg[0] * $arg[1];
            }
      }
   }
   $circle = new Shape();
   echo $circle-&amp;gt;area(3);
   $rect = new Shape();
   echo $rect-&amp;gt;area(8,6);
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Output&lt;/strong&gt;&amp;nbsp;: This will produce the following output&lt;/p&gt;&lt;pre class="wp-block-code" style="box-sizing: border-box; color: #020202; font-family: Courier, monospace; font-size: 0.9em; margin-bottom: 20px; margin-top: 20px; padding: 30px; white-space: pre-wrap;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-radius: 5px; border: 0px; box-sizing: border-box; color: #333333; display: block; font-family: inherit; overflow-wrap: break-word; padding: 0px 3px;"&gt;9.42648
48&lt;/code&gt;&lt;/pre&gt;&lt;h2 style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: var(--h2fontsize); font-weight: var(--h2fontweight); line-height: var(--h2lineheight); margin: 0px 0px 30px; padding: 0px; text-transform: var(--h2texttransform);"&gt;Function Overriding In PHP&lt;/h2&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;Function overriding in PHP is quite easy. Overriding is the process of modifying something of the inherited method. Means in function overriding, the parent and child classes have the same function name with and number of arguments&lt;/p&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;In belwo example you see two classes Base and Derived. Derived cass extends to Base. Which means Derived can access parent class. Here you see parent has demo() function and child class also demo() function with same name and same argument. Here you see function overriding scenario where child class override the base class function.&lt;/p&gt;&lt;pre class="wp-block-code" style="box-sizing: border-box; color: #020202; font-family: Courier, monospace; font-size: 0.9em; margin-bottom: 20px; margin-top: 20px; padding: 30px; white-space: pre-wrap;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-radius: 5px; border: 0px; box-sizing: border-box; color: #333333; display: block; font-family: inherit; overflow-wrap: break-word; padding: 0px 3px;"&gt;&amp;lt;?php
   class Base {
      function display() {
         echo "\nBase class function declared final!";
      }
      function demo() {
         echo "\nBase class function!";
      }
   }
   class Derived extends Base {
      function demo() {
         echo "\nDerived class function!";
      }
   }
   $ob = new Base;
   $ob-&amp;gt;demo();
   $ob-&amp;gt;display();
   $ob2 = new Derived;
   $ob2-&amp;gt;demo();
   $ob2-&amp;gt;display();
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 30px; padding: 0px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Output&lt;/strong&gt;&amp;nbsp;: This will produce the following output&lt;/p&gt;&lt;pre class="wp-block-code" style="box-sizing: border-box; color: #020202; font-family: Courier, monospace; font-size: 0.9em; margin-bottom: 20px; margin-top: 20px; padding: 30px; white-space: pre-wrap;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-radius: 5px; border: 0px; box-sizing: border-box; color: #333333; display: block; font-family: inherit; overflow-wrap: break-word; padding: 0px 3px;"&gt;Base class function!
Base class function declared final!
Derived class function!
Base class function declared final!&lt;/code&gt;&lt;/pre&gt;&lt;h2 style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: var(--h2fontsize); font-weight: var(--h2fontweight); line-height: var(--h2lineheight); margin: 0px 0px 30px; padding: 0px; text-transform: var(--h2texttransform);"&gt;&lt;a href="https://www.developerdiary.in/function-overloading-and-overriding-in-php/" target="_blank"&gt;Original article publish here.&amp;gt;&lt;/a&gt;&amp;gt;&lt;/h2&gt;&lt;div&gt;&lt;span style="font-size: medium;"&gt;&lt;a href="https://www.developerdiary.in/php-interview-questions/" target="_blank"&gt;Get Best PHP Interview Questions and Answers&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://checkconcept.blogspot.com/2022/07/function-overloading-and-overriding-in.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-1022438661258333073</guid><pubDate>Mon, 27 Jun 2022 12:09:00 +0000</pubDate><atom:updated>2022-07-08T12:11:40.091-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DevOps</category><category domain="http://www.blogger.com/atom/ns#">Laravel</category><category domain="http://www.blogger.com/atom/ns#">MVC Frameworks</category><category domain="http://www.blogger.com/atom/ns#">My SQL</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>The Requested Url /Phpmyadmin/ Was Not Found On This Server</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://www.developerdiary.in/wp-content/uploads/2022/06/phpmyadmin-not-found-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="430" data-original-width="800" height="430" src="https://www.developerdiary.in/wp-content/uploads/2022/06/phpmyadmin-not-found-1.png" width="800" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;What Is phpMyAdmin&lt;/p&gt;&lt;p&gt;phpMyAdmin is an open-source software tool introduced on September 9, 1998, which is written in PHP. Basically, it is a third-party tool to manage the tables and data inside the database. phpMyAdmin supports various type of operations on MariaDB and MySQL. The main purpose of phpMyAdmin is to handle the administration of MySQL over the web.&lt;/p&gt;&lt;p&gt;phpMyAdmin has a GUI application which used to mange the database. Here we can create a database, table and execution of mysql query using phpMyAdmin GUI&lt;/p&gt;&lt;p&gt;&lt;strong style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px;"&gt;Our Problem&lt;/strong&gt;&lt;span style="background-color: white; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;: phpMyAdmin url not found. Here you will find the&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.developerdiary.in/linux/requested-url-phpmyadmin-not-found-server/" target="_blank"&gt;Solution Here&lt;/a&gt;&lt;/p&gt;</description><link>http://checkconcept.blogspot.com/2022/06/the-requested-url-phpmyadmin-was-not.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-1097295951059967513</guid><pubDate>Sun, 30 Jul 2017 08:22:00 +0000</pubDate><atom:updated>2022-07-08T12:10:11.542-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AnuglarJs</category><category domain="http://www.blogger.com/atom/ns#">ReactJs</category><title>The difference between React vs AngularJs </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaBl3cVJKOf8YSKADmyhBNjNNGZo4-7OVUJ0Cq6fhXqG1MKpeTr9VNSyi_KHcdAijYEW_d-myMwP3Au5nClTTLA_z_Eir4Ltrw6bvybqW_XY7iLUeI4ITx9leRl3tSFrNXIt2qXjJ2fJ2t/s1600/maxresdefault.jpg"&gt;&lt;img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaBl3cVJKOf8YSKADmyhBNjNNGZo4-7OVUJ0Cq6fhXqG1MKpeTr9VNSyi_KHcdAijYEW_d-myMwP3Au5nClTTLA_z_Eir4Ltrw6bvybqW_XY7iLUeI4ITx9leRl3tSFrNXIt2qXjJ2fJ2t/s640/maxresdefault.jpg" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
React and AngularJs are currently using Travel and News companies.&lt;br /&gt;
Main reason difference between AngularJs and ReactJs is&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;AngularJS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt; 1. AngularJs is MVC framework library. It is used for Two-way data binding.&lt;br /&gt;
2. AngularJs is an App development framework.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ReactJS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt; 1. React Js is a Library. It is used for One-way data binding.&lt;br /&gt;
2. ReactJs is an interface development framework.&lt;br /&gt;
&lt;br /&gt;
AngualrJs is a Javascript Framework. Where we can add HTML tags with Scrip tag. It is a Library written in Javascript.&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"&gt;&lt;/script&gt; 
&lt;/pre&gt;
AngularJs developed by GOOGLE. AngularJs&amp;nbsp;similar to Backbone or JavascriptMVC. It is a complete solution for rapid development.&lt;br /&gt;
&lt;br /&gt;
Following are some Features of AngularJs.&lt;br /&gt;
&lt;br /&gt;
1. REST Easy: RESTful action quick communication between server to the client.&lt;br /&gt;
2. Extends HTML: AngularJS extends HTML with ng-directives. The ng-app directive defines an AngularJS application. The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. The ng-bind directive binds application data to the HTML view.&lt;br /&gt;
&lt;br /&gt;
3. Makes HTML your Template: In AngularJS template is written in HTML which contains elements and attributes. AngualrJs create a template with information from the model and controller to render view in the browser. Getting started with AngularJS is incredibly easy. Just a few attributes added to your HTML, and you can have a simple Angular app.&lt;br /&gt;
&lt;br /&gt;
AngualrJs Simple Example:&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;html&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"&gt;&lt;/script&gt;
&lt;body&gt;

&lt;div ng-app=""&gt;
  Name: &lt;input ng-model="name" type="text" /&gt;


  &lt;div ng-bind="name"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;/pre&gt;
AngularJS Expressions Example&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;html&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"&gt;&lt;/script&gt;
&lt;body&gt;

&lt;div ng-app=""&gt;
  First Expressions: {{ 8 + 8 }}


&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;/pre&gt;
&lt;br /&gt;
ReactJs ReactJs developed by Facebook. React is a Javascript Library.&lt;br /&gt;
&lt;br /&gt;
Following are some Features of ReactJs.&lt;br /&gt;
&lt;br /&gt;
1. Lightweight DOM For Better Performance&lt;br /&gt;
2. Easy Learning Curve&lt;br /&gt;
3. Components Support And Little Dependencies&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2 style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: var(--h2fontsize); font-weight: var(--h2fontweight); line-height: var(--h2lineheight); margin: 0px 0px 30px; padding: 0px; text-transform: var(--h2texttransform);"&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2 style="background-color: white; box-sizing: border-box; color: #020202; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-weight: var(--h2fontweight); line-height: var(--h2lineheight); margin: 0px 0px 30px; padding: 0px; text-transform: var(--h2texttransform);"&gt;&lt;span style="font-size: large;"&gt;More On React JS And React Native&lt;/span&gt;&lt;/h2&gt;&lt;a href="https://www.developerdiary.in/reactjs/react-js-new-trend-in-web-development-in-2020/" rel="noopener" style="--linkdeco: underline; background-color: white; box-sizing: border-box; cursor: pointer; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: var(--linkdeco);" target="_self"&gt;&lt;/a&gt;&lt;ul style="text-align: left;"&gt;&lt;a href="https://www.developerdiary.in/reactjs/react-js-new-trend-in-web-development-in-2020/" rel="noopener" style="--linkdeco: underline; background-color: white; box-sizing: border-box; cursor: pointer; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: var(--linkdeco);" target="_self"&gt;&lt;/a&gt;&lt;li&gt;&lt;a href="https://www.developerdiary.in/reactjs/react-js-new-trend-in-web-development-in-2020/" rel="noopener" style="--linkdeco: underline; background-color: white; box-sizing: border-box; cursor: pointer; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: var(--linkdeco);" target="_self"&gt;&lt;/a&gt;&lt;a href="https://www.developerdiary.in/reactjs/react-js-new-trend-in-web-development-in-2020/" rel="noopener" style="--linkdeco: underline; background-color: white; box-sizing: border-box; cursor: pointer; font-family: &amp;quot;Roboto Condensed&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: var(--linkdeco);" target="_self"&gt;React JS: New Trend in Web Development in 2020&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.developerdiary.in/reactjs/ionic-vs-react-native-what-is-better-and-why/" style="--linkdeco: underline; box-sizing: border-box; cursor: pointer; text-decoration: var(--linkdeco);"&gt;Ionic Vs React Native: What Is Better and Why?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/reactjs-vs-angularjs.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaBl3cVJKOf8YSKADmyhBNjNNGZo4-7OVUJ0Cq6fhXqG1MKpeTr9VNSyi_KHcdAijYEW_d-myMwP3Au5nClTTLA_z_Eir4Ltrw6bvybqW_XY7iLUeI4ITx9leRl3tSFrNXIt2qXjJ2fJ2t/s72-c/maxresdefault.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-8437744900196920210</guid><pubDate>Sat, 29 Jul 2017 09:17:00 +0000</pubDate><atom:updated>2022-07-08T12:13:33.987-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">get and post</category><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>What is difference between get and post method in php</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;b&gt;What is HTTP?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server.&lt;br /&gt;
&lt;br /&gt;
Two HTTP Request Methods commonly used for request-response between a client and server: GET and POST&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The GET Method&lt;/b&gt;&lt;br /&gt;
Following example which shows you how to use get method.&lt;br /&gt;
http://www.example.com/test/demo_form.php?name1=value1&amp;amp;name2=value2&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Following are GET Request Method Points.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Request can be cached&lt;br /&gt;
2. Requests can be bookmarked&lt;br /&gt;
3. Requests remain in the browser history&lt;br /&gt;
4. Requests have length restrictions&lt;br /&gt;
5. Requests should be used only to retrieve data&lt;br /&gt;
6. Requests should never be used when dealing with sensitive data&lt;br /&gt;
7. Maximum path length of 2,048 characters&lt;br /&gt;
8. Data visible to everyone in URL.&lt;br /&gt;
9. GET is less secure compared to POST because data sent is the URL.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Following are POST Request Method Points.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Requests are never cached&lt;br /&gt;
2. Requests do not remain in the browser history&lt;br /&gt;
3. Requests cannot be bookmarked&lt;br /&gt;
4. No restriction data lenght&lt;br /&gt;
5. Requests have no restrictions on data length&lt;br /&gt;
6. Data is not display in URL.&lt;br /&gt;
7. POST is a little safer than GET because the parameters are not stored in browser history.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We just started this developer diary for a beginner programmer to find a technical solution which we went through with our experience. If anyone to be a part of this please feel free share with us your problem with solutions. So we can share with more needed coder.&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="https://www.developerdiary.in/what-is-the-difference-between-get-and-post/" target="_blank"&gt;Original article publish here&amp;nbsp;&lt;/a&gt;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/what-is-difference-between-get-and-post.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-7628903853638950505</guid><pubDate>Sun, 23 Jul 2017 07:06:00 +0000</pubDate><atom:updated>2017-07-23T00:08:19.012-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AWS</category><category domain="http://www.blogger.com/atom/ns#">UBUNTU</category><title>Connect to Amazon EC2 instance using Filezilla and SFTP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hello friends this tutorial help you how to connect AWS EC2 instance using Filezilla and SFTP.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
First you need to have .pem file. This .pem file is created when you are creating a new instance in your AWS account.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMw7n52E26CHnG1_PqHmUkHOhqZbyPD1Grwux2SffCNHa2E4FPVGlev-t91DxCHL0_bHCDftINVQdGZSCiSci26Ky0GnlOgRvT47RhK282b-UttOgREh0QWBO9Ax88CdvXZBAba6507Aaf/s1600/filezilla+with+AWS.jpg" imageanchor="1"&gt;&lt;img border="0" height="330" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMw7n52E26CHnG1_PqHmUkHOhqZbyPD1Grwux2SffCNHa2E4FPVGlev-t91DxCHL0_bHCDftINVQdGZSCiSci26Ky0GnlOgRvT47RhK282b-UttOgREh0QWBO9Ax88CdvXZBAba6507Aaf/s400/filezilla+with+AWS.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Follow below steps to connect AWS EC2 instance.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. Start Filezilla. Goto preference -&amp;gt;connection-&amp;gt;SFTP&lt;/div&gt;
&lt;div&gt;
2. Add .pem file then you will get prompt to convert .pem file.&lt;/div&gt;
&lt;div&gt;
3. Save with same name.&lt;/div&gt;
&lt;div&gt;
4. Add Host address. You will get public ip from AWS EC2 instance.&lt;/div&gt;
&lt;div&gt;
5. Username ec-2 or ubuntu. Username you will find in connect tab.&lt;/div&gt;
&lt;div&gt;
6. Port : 22&lt;/div&gt;
&lt;div&gt;
7. Connect.&lt;/div&gt;
&lt;div&gt;
8. Finish.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/connect-to-amazon-ec2-instance-using.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMw7n52E26CHnG1_PqHmUkHOhqZbyPD1Grwux2SffCNHa2E4FPVGlev-t91DxCHL0_bHCDftINVQdGZSCiSci26Ky0GnlOgRvT47RhK282b-UttOgREh0QWBO9Ax88CdvXZBAba6507Aaf/s72-c/filezilla+with+AWS.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-3284636219659018628</guid><pubDate>Sat, 22 Jul 2017 09:06:00 +0000</pubDate><atom:updated>2017-07-22T02:11:04.535-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">UBUNTU</category><title>Magento – Newsletter's emails stuck in Queue</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
If you are scratching your head to figure out why not Magento sending newsletter email. Here we got the same problem. You can check on Problem with Solution.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFK15CYDDfh2p1_5U9UH63A-LJ6vHij5dxvrWJjgZuu4Ay_Flj268bOZf91qt9A2bx8svSUaZTxFjBPJueIwn3FKzSdMBz9yUdQmEkNAcC70VOwfP7JJbMw_UiAsCm_SA_a7r33FA7XYTQ/s1600/newsletter.jpg" imageanchor="1"&gt;&lt;img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFK15CYDDfh2p1_5U9UH63A-LJ6vHij5dxvrWJjgZuu4Ay_Flj268bOZf91qt9A2bx8svSUaZTxFjBPJueIwn3FKzSdMBz9yUdQmEkNAcC70VOwfP7JJbMw_UiAsCm_SA_a7r33FA7XYTQ/s640/newsletter.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt; &lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We installed newsletter pop up extension which was working fine. But after some days we saw newsletter emails are not working.&lt;br /&gt;
&lt;br /&gt;
We tried many solutions, Check Magento newsletter setting and also check cronjob code. But no luck. Then we have tried to uninstall recently installed extensions on the server then we found MailChimp and Newsletter POP extension are conflicting with each other.&lt;br /&gt;
&lt;br /&gt;
If you have a facing same problem then you can apply the following solution&lt;br /&gt;
&lt;br /&gt;
1. First, check cronjob properly set or not.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo crontab -e */5 * * * * /path/to/php -f /path/to/cron.php&amp;nbsp;&lt;/blockquote&gt;
&lt;br /&gt;
2. This solution we found on ebizmarts forum.&lt;br /&gt;
&lt;br /&gt;
Comment out line 118 of app/code/community/Ebizmarts/MailChimp/Model/Observer.php&lt;br /&gt;
&lt;br /&gt;
//$subscriber-&amp;gt;setImportMode(true); //commented out to enable Magento to send emails&lt;br /&gt;
&lt;br /&gt;
In app/code/community/Ebizmarts/MailChimp/Model/Subscriber.php&lt;br /&gt;
&lt;br /&gt;
Rewrite the public function sendConfirmationSuccessEmail() on line 29 with the following code&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:php"&gt;public function sendConfirmationSuccessEmail(){
  if (Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::GENERAL_ACTIVE)) {
  /* commented out to enable Magento to send emails
  if (Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::GENERAL_ACTIVE)) {
  return $this;
  } else {
  } else {*/ 
  return parent::sendConfirmationSuccessEmail();
  }
  /* } */
  }
}
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/magento-newsletters-emails-stuck-in.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFK15CYDDfh2p1_5U9UH63A-LJ6vHij5dxvrWJjgZuu4Ay_Flj268bOZf91qt9A2bx8svSUaZTxFjBPJueIwn3FKzSdMBz9yUdQmEkNAcC70VOwfP7JJbMw_UiAsCm_SA_a7r33FA7XYTQ/s72-c/newsletter.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-8429187459233825378</guid><pubDate>Sat, 15 Jul 2017 06:07:00 +0000</pubDate><atom:updated>2017-07-17T02:40:36.408-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">My SQL</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">UBUNTU</category><title>Free AWS EC2 Ubuntu Instance Website setup </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Amazon Web Service is a cloud platform which given us to create free hosting in both platform like Windows and Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXvXp7ALXvwYXNTJ7d41g2VeJIB60BIF8L4FRE_0qjthNVzj06SvajBEWDqTcvL-MmGvH-N0RE_jcHlOTXuZ-3ETJgsQkyLxuFqJn5oBqYL5DTNd9fEF_1QtQXALUbA1_CiT_rMRiZ3UMi/s1600/ec2_logo.png" imageanchor="1"&gt;&lt;img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXvXp7ALXvwYXNTJ7d41g2VeJIB60BIF8L4FRE_0qjthNVzj06SvajBEWDqTcvL-MmGvH-N0RE_jcHlOTXuZ-3ETJgsQkyLxuFqJn5oBqYL5DTNd9fEF_1QtQXALUbA1_CiT_rMRiZ3UMi/s320/ec2_logo.png" width="299" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here we are working on Ubuntu setup. Where we will install Apache2, PHP and MySQL.&lt;br /&gt;
&lt;br /&gt;
1. First you have to create new account in AWS. If you have existing account then no need to create.&lt;br /&gt;
2. After login you have to select EC2 option then you enter EC2 Dashboard.&lt;br /&gt;
3. Click Launch Instance&lt;br /&gt;
4. Select Free tier Eligible Ubuntu option.&lt;br /&gt;
5. Add New Volume EBS.&lt;br /&gt;
6. Add New Tag.&lt;br /&gt;
7. Add Security Group.&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;br /&gt;
&amp;nbsp; Type : SSH&lt;br /&gt;
&amp;nbsp; Protocol: TCP&lt;br /&gt;
&amp;nbsp; Port : 22&lt;br /&gt;
&amp;nbsp; Source : Anywhere&amp;nbsp;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&amp;nbsp;Type : HTTP&lt;br /&gt;
&amp;nbsp; Protocol : TCP&lt;br /&gt;
&amp;nbsp; Port : 80&lt;br /&gt;
&amp;nbsp; Source : Anywhere&lt;/blockquote&gt;
&lt;br /&gt;
8. Review and Launch&lt;br /&gt;
9. Create a New Pair Key. Download Key.&lt;br /&gt;
10. Using Puttygen.exe software create public and private key.&lt;br /&gt;
11. &lt;a href="http://checkconcept.blogspot.in/2017/07/login-ssh-using-puttyexe.html" target="_blank"&gt;Login SSH using putty.exe&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now we are ready to install Apache2, PHP, MySQL. &lt;br /&gt;
&lt;br /&gt;
Command 1 ( Update Ubuntu server )&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Command 2 ( Install apache2 server )&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;br /&gt;
sudo apt-get install apache2&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Command 3&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo a2enmod rewrite&lt;/blockquote&gt;
&lt;br /&gt;
Command 4 ( Install php available version )&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo apt-get install php&lt;/blockquote&gt;
&lt;br /&gt;
Sometime php7 not executing on Apache server. For that you need to just run following command&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo apt install php libapache2-mod-php&lt;/blockquote&gt;
&lt;br /&gt;
Command 5 ( Start apache2 server )&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo service apache2 restart&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Command 6 ( Install MySQL server )&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;br /&gt;
sudo apt-get install mysql-server&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Command 7 ( Install PHPMyAdmin )&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
sudo apt-get install phpmyadmin &lt;br /&gt;vim /etc/apache2/apache2.conf&lt;/blockquote&gt;
&lt;br /&gt;&lt;br /&gt;Add the following to the bottom of the file:&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
# phpMyAdmin Configuration&lt;br /&gt;Include /etc/phpmyadmin/apache.conf&lt;/blockquote&gt;
&lt;br /&gt;And, restart Apache 2 with the following command:&lt;br /&gt;&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
service apache2 restart &lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/free-aws-ec2-ubuntu-instance-website.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXvXp7ALXvwYXNTJ7d41g2VeJIB60BIF8L4FRE_0qjthNVzj06SvajBEWDqTcvL-MmGvH-N0RE_jcHlOTXuZ-3ETJgsQkyLxuFqJn5oBqYL5DTNd9fEF_1QtQXALUbA1_CiT_rMRiZ3UMi/s72-c/ec2_logo.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-6343612687699895577</guid><pubDate>Sat, 15 Jul 2017 05:58:00 +0000</pubDate><atom:updated>2017-07-14T22:58:56.623-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">UBUNTU</category><title>Login SSH using Putty.exe</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Login SSH using Putty.exe

Putty is an SSH and Telnet client software, developed by Simon Tatham for the Windows platform.&lt;br /&gt;
&lt;br /&gt;
Putty is open source software

Follow below steps which can help you to login SSH using putty.&lt;br /&gt;
&lt;br /&gt;
1. Download Putty.exe&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwVIFVJotDF6H6XqPdsVnZJ5_bZs6Si5LtsUB3xDGjEG2OYhtuS9PSrcUp-HFDrp1BjJXY_FqxqkZEcYb8IBEEAmR3sOfSSZCpOaoSbGS7du46uFhjwSygNrXt33sMpRVvJ2Cxh_e4HgMV/s1600/ssh.png" imageanchor="1"&gt;&lt;img border="0" height="310" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwVIFVJotDF6H6XqPdsVnZJ5_bZs6Si5LtsUB3xDGjEG2OYhtuS9PSrcUp-HFDrp1BjJXY_FqxqkZEcYb8IBEEAmR3sOfSSZCpOaoSbGS7du46uFhjwSygNrXt33sMpRVvJ2Cxh_e4HgMV/s320/ssh.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Enter IP.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS40717_1tOGCB13tI-zXpIgp2qvj_1HHLYhI8f-QAhMhx3pa_yyySZO9B83bfGIHfyYSI6CxnV0qGbj1Wzg7cOWOs81OnxihBdp9qwM1eiplhdGUcZmqcKDAjUPgKZ-rxUH1D7LolUoAj/s1600/ssh2.png" imageanchor="1"&gt;&lt;img border="0" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS40717_1tOGCB13tI-zXpIgp2qvj_1HHLYhI8f-QAhMhx3pa_yyySZO9B83bfGIHfyYSI6CxnV0qGbj1Wzg7cOWOs81OnxihBdp9qwM1eiplhdGUcZmqcKDAjUPgKZ-rxUH1D7LolUoAj/s320/ssh2.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. Select PPK file path provide by your hosting provider or if you are using AWS then you will get ppk file from there also.

&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/login-ssh-using-puttyexe.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwVIFVJotDF6H6XqPdsVnZJ5_bZs6Si5LtsUB3xDGjEG2OYhtuS9PSrcUp-HFDrp1BjJXY_FqxqkZEcYb8IBEEAmR3sOfSSZCpOaoSbGS7du46uFhjwSygNrXt33sMpRVvJ2Cxh_e4HgMV/s72-c/ssh.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-1832974318484172881</guid><pubDate>Tue, 11 Jul 2017 05:29:00 +0000</pubDate><atom:updated>2017-07-10T22:32:39.049-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSS</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">WordPress</category><title>How to clear the cache of client browsers?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hello friends today we will learn how to clear the cache client browsers.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ1UUL2CAJUFbRbvojMNx2DBig070NprzDl-1zs2yL-R1YeDF6NROjrUAFloxvnSRDZeyP3Jhtto0mRrLb1FHPqceegWQxopwYFzcsUyELtD02Qaqrpk299skUZ85Vv1X7mZ10Sa_ADZS4/s1600/How-to-clear-your-browser-cache-header-image-copy.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="640" data-original-width="970" height="211" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ1UUL2CAJUFbRbvojMNx2DBig070NprzDl-1zs2yL-R1YeDF6NROjrUAFloxvnSRDZeyP3Jhtto0mRrLb1FHPqceegWQxopwYFzcsUyELtD02Qaqrpk299skUZ85Vv1X7mZ10Sa_ADZS4/s320/How-to-clear-your-browser-cache-header-image-copy.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
This technique is very simple. Just add a version parameter to the URL string which is either a random string or a random number.&lt;br /&gt;
&lt;br /&gt;
If you change your sites CSS and upload on the server you will get old result only. For solve this problem, simply add ?ver=1.1 to the CSS import at the head of the file. So the browser teat as a different file.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link href="css/style.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;
Becomes&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link href="css/style.css?ver=1.1" rel="stylesheet" type="text/css" /&amp;gt;&lt;span style="background-color: #eff0f1; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;
Same you can apply for JavaScript files.&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/how-to-clear-cache-of-client-browsers.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ1UUL2CAJUFbRbvojMNx2DBig070NprzDl-1zs2yL-R1YeDF6NROjrUAFloxvnSRDZeyP3Jhtto0mRrLb1FHPqceegWQxopwYFzcsUyELtD02Qaqrpk299skUZ85Vv1X7mZ10Sa_ADZS4/s72-c/How-to-clear-your-browser-cache-header-image-copy.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-1964141385058398182</guid><pubDate>Sat, 08 Jul 2017 07:18:00 +0000</pubDate><atom:updated>2017-07-27T23:55:33.196-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">SytaxHighlighter</category><title>How to send emails using PHPmailer and GMAIL SMTP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Here I have tried how to send PHPMailer with attachement using SMTP configuration. For SMTP Configuration we here used GMAIL Auth. You can used any Auth like &lt;a href="https://www.smtp2go.com/" target="_blank"&gt;SMTP2GO&lt;/a&gt;, &lt;a href="https://sendgrid.com/" target="_blank"&gt;SendGrid&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Download &lt;a href="https://github.com/PHPMailer/PHPMailer" rel="nofollow" target="_blank"&gt;PHPMailer&lt;/a&gt; library.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHbn5xiS5w7RLCW2dhSXEWG9q-Jy1cExzUedttAMN1S0YMKSf4ExOEs6vwMxzVkXRULyMYPTvgAFGhz8exM6Ce5m75dcvB0h3UsdC66ZnpsViPsGMmfLCNLsbcwhWOa61hMNaOV_o3rE3r/s1600/mail_logo_rgb_web.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="661" data-original-width="1600" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHbn5xiS5w7RLCW2dhSXEWG9q-Jy1cExzUedttAMN1S0YMKSf4ExOEs6vwMxzVkXRULyMYPTvgAFGhz8exM6Ce5m75dcvB0h3UsdC66ZnpsViPsGMmfLCNLsbcwhWOa61hMNaOV_o3rE3r/s320/mail_logo_rgb_web.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
PHPMailer Sample Code&lt;/h2&gt;
Addd or Copy paste the following code in your editor and save with any filename with extension ".php" and try in your live server or local server. But Make sure you have to connect with internet with proper Auth details&lt;br /&gt;
&lt;pre class="brush:php"&gt;&amp;lt;?php

require_once('phpmailer/PHPMailerAutoload.php');

$mail = new PHPMailer();
$mail-&amp;gt;CharSet =  "utf-8";
$mail-&amp;gt;IsSMTP(); // Set mailer to use SMTP
$mail-&amp;gt;SMTPDebug = 1;  // Enable verbose debug output
$mail-&amp;gt;SMTPAuth = true; // Enable SMTP authentication
$mail-&amp;gt;Username = "xxx@example.com"; //Your Auth Email ID
$mail-&amp;gt;Password = "xxxxxx"; //Your Password
$mail-&amp;gt;SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail-&amp;gt;Host = "smtp.gmail.com"; // SMTP 
$mail-&amp;gt;Port = "587"; // TCP port to connect to

$mail-&amp;gt;setFrom('xxx@example.com', 'From Name');
$mail-&amp;gt;AddAddress("abc@gmail.com" , "Recipient name"); // Add a recipient

$mail-&amp;gt;addAttachment('path/file.png');         // Add attachments

$mail-&amp;gt;Subject = "Subject Line";
$mail-&amp;gt;Body = "&lt;div style='font-weight: bold'&gt;Your Message or Content&lt;/div&gt;";
$mail-&amp;gt;ContentType = "text/html";

if($mail-&amp;gt;Send()){
 $str = "OK"; 
}else{
 $str = "ERR"; 
}

//End PHPMailer Code Here
?&amp;gt;


&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2017/07/how-to-send-emails-using-phpmailer.html</link><author>noreply@blogger.com (iamikhlaque)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHbn5xiS5w7RLCW2dhSXEWG9q-Jy1cExzUedttAMN1S0YMKSf4ExOEs6vwMxzVkXRULyMYPTvgAFGhz8exM6Ce5m75dcvB0h3UsdC66ZnpsViPsGMmfLCNLsbcwhWOa61hMNaOV_o3rE3r/s72-c/mail_logo_rgb_web.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-5051396018052934350</guid><pubDate>Thu, 06 Jul 2017 17:31:00 +0000</pubDate><atom:updated>2017-07-07T05:04:55.265-07:00</atom:updated><title>How to use SytaxHighlighter code with Blogger </title><description># Add Sytax Highlighter to your Blogger Code Samples

After trying many solutions to implement syntax highlighting on Blogger, I came across [Alex Gorbatchev's](http://alexgorbatchev.com/SyntaxHighlighter/) Javascript plugin.

Implementing it is very easy, however, I couldn't get it to work on secure (https) URLs.

Add the below code in your `head` tag.

&lt;pre class="brush: jscript"&gt;

&lt;!-- BEGIN SyntaxHighlighter BEGIN --&gt;
&lt;link href="https://alexgorbatchev.com/pub/sh/current/styles/shCoreDefault.css" rel="stylesheet" type="text/css"&gt;
&lt;link href="https://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css"&gt;

&lt;!-- Add below links in &lt;script&gt; tags also --&gt;
http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDiff.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJavaFX.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js
http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js

&lt;script language='javascript' type='text/javascript'&gt;
    SyntaxHighlighter.config.bloggerMode = true;
    SyntaxHighlighter.all();
 &lt;/script&gt;

&lt;!-- END SyntaxHighlighter END --&gt;

&lt;/pre&gt;



&lt;h3&gt;Sample code for implement.&lt;/h3&gt;

&lt;pre class="brush: xml"&gt;
 &lt;pre class="brush: js"&gt;
  &lt;script type='text/javascript'&gt;
   console.log('First Code Block');
  &lt;/script&gt;
 &lt;/pre&gt;
&lt;/pre&gt;


You might be wondering why I have given the `&lt;b&gt;pre&lt;/b&gt;` tag `brush: js` as classes. You need to mention the syntax highlighting that needs to be used to highlight your code. You can find the full list of supported syntax declarations [here](http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/).
</description><link>http://checkconcept.blogspot.com/2017/07/how-to-use-sytaxhighlighter-code-with.html</link><author>noreply@blogger.com (iamikhlaque)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-8862029816776662816</guid><pubDate>Sat, 01 Jul 2017 10:02:00 +0000</pubDate><atom:updated>2017-07-29T01:58:13.262-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Jquery</category><title>Select active menu using jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Most of the developer has an issue to select active menu in the same header. So here we try with the following example. May be this example will help you, If you have any doubt or question you can comment us. We will reply you ASAP.&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;ul id="menu"&gt;
&lt;li&gt;&lt;a href="https://www.blogger.com/home"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.blogger.com/about"&gt;About us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.blogger.com/contact"&gt;Contact us&lt;/a&gt;&amp;gt;/li&amp;gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/pre&gt;
Suppos here we click on Home menu. Then home li should be selected. My URL is : http://www.example.com/home&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
  jQuery.noConflict();
  jQuery(document).ready(function() {
    var currentURL=location.href;
    var arrURL=currentURL.split("/");
    var currMenu=arrURL[3];
    if (currMenu != "") {
            jQuery('#menu li a').each(function(idx, item){
            var menuURL = jQuery(this).attr("href");
            if (menuURL == currMenu) {
                jQuery(this).addClass("active");
            }
        });
    }
 });
&lt;/script&gt;
&lt;/pre&gt;
Output :&lt;br /&gt;
&lt;pre class="brush:js"&gt;&lt;ul id="menu"&gt;
&lt;li&gt;&lt;a class="active" href="https://www.blogger.com/home"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.blogger.com/about"&gt;About us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.blogger.com/contact"&gt;Contact us&lt;/a&gt;&amp;gt;/li&amp;gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2011/10/jquery-current-menu-selection.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-6388208013633034083</guid><pubDate>Mon, 30 Jan 2017 08:11:00 +0000</pubDate><atom:updated>2017-07-02T02:41:48.886-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">My SQL</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>Import CSV to Database using PHP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Import csv database using PHP. Follow the following code and you will done with CSV import script using PHP. If you have any questions you can feel free comment we will reply you ASAP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PHP Code

&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;       &lt;code style="color: black; word-wrap: normal;"&gt;

  &amp;lt;?php
 
   if(isset($_POST["Import"]))
   {
 
   $filename=$_FILES["file"]["tmp_name"];
 
   if($_FILES["file"]["size"] &amp;gt; 0)
   {
 
   $file = fopen($filename, "r");
           mysql_query('truncate table table');
           while (($data = fgetcsv($file, 10000, ",")) !== FALSE)
           {
              $sql = "INSERT into table(name,email,avg,sr,runs,wickets,hs,sixes,fours,longsixes,created) values('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]','$data[5]','$data[6]','$data[7]','$data[8]','$data[9]', now())";
              mysql_query($sql);
           }
           fclose($file);
           echo "CSV File has been successfully Imported";
   }
   else
   echo "Invalid File:Please Upload CSV File";
 
   }
   ?&amp;gt;         

       &lt;/code&gt;
 &lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
HTML Code
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;&lt;span style="font-size: 12px;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;code style="word-wrap: normal;"&gt;&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;&lt;span style="font-size: 12px;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;your code="" here=""&gt;&lt;span style="font-size: 12px;"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
   &amp;lt;head&amp;gt;
      &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
      &amp;lt;title&amp;gt;Import CSV/Excel file&amp;lt;/title&amp;gt;
   &amp;lt;/head&amp;gt;
   &amp;lt;body&amp;gt;
      &amp;lt;form enctype="multipart/form-data" method="post"&amp;gt;
         &amp;lt;table border="1" width="40%" align="center"&amp;gt;
            &amp;lt;tr &amp;gt;
               &amp;lt;td colspan="2" align="center"&amp;gt;&amp;lt;strong&amp;gt;Import CSV&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
               &amp;lt;td align="center"&amp;gt;CSV/Excel File:&amp;lt;/td&amp;gt;
               &amp;lt;td&amp;gt;&amp;lt;input type="file" name="file" id="file"&amp;gt;&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr &amp;gt;
               &amp;lt;td colspan="2" align="center"&amp;gt;&amp;lt;input type="submit" name="Import" value="Import"&amp;gt;&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
         &amp;lt;/table&amp;gt;
      &amp;lt;/form&amp;gt;
   &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;&lt;span style="font-size: 12px;"&gt;

       &lt;/span&gt;&lt;/span&gt;&lt;/your&gt;&lt;/code&gt;&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;&lt;span style="font-size: 12px;"&gt;
 &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2013/04/import-csv-to-database-using-php.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-6204749243496411324</guid><pubDate>Tue, 05 Jul 2016 16:23:00 +0000</pubDate><atom:updated>2017-07-10T22:33:30.144-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WordPress</category><title>WP Migrate DB</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Friends used WP Migrate DB plugin. Which is very easy to migrate your database from one server to another without any loss information.&lt;br /&gt;
&lt;br /&gt;
Trust me I have used this plugin in many website.&lt;br /&gt;
&lt;br /&gt;
WP Migrate DB exports your database as a MySQL data dump (much like phpMyAdmin), does a find and replace on URLs and file paths, handles serialized data, then allows you to save it to your computer as an SQL file. To complete the migration, you need to use a database management tool (e.g. phpMyAdmin) to import the SQL file to your database, replacing your existing database. It is perfect for developers who need to migrate fresh data from the production site to their local install, or migrate their locally developed site to a staging or production server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="https://wordpress.org/plugins/wp-migrate-db/" target="_blank"&gt;Check Link Click Here&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/m8oScnEK5y0/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/m8oScnEK5y0?feature=player_embedded" width="320"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2016/07/wp-migrate-db.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://img.youtube.com/vi/m8oScnEK5y0/default.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-2211535405318071735</guid><pubDate>Tue, 05 Jul 2016 16:18:00 +0000</pubDate><atom:updated>2017-07-02T02:39:32.338-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>Enabling Gzip Compression of PHP, CSS, and JS Files Without mod_deflate</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
For enable Gzip compression using mod_deflate add following lines to your .htaccess file

&lt;ifmodule mod_deflate.c=""&gt;
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
&lt;/ifmodule&gt;

But those who don’t allow the mod_deflate module and run PHP in CGI/FastCGI mode you can’t go with the easy method.

So, to serve up your PHP, CSS, and JS files you can try the following method.&lt;br /&gt;
&lt;br /&gt;
Step 1: PHP Configuration

Add or modify the following lines in your custom php.ini file

&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;       &lt;code style="color: black; word-wrap: normal;"&gt;

&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;output_handler = Off&lt;/span&gt;&lt;/div&gt;
zlib.output_compression = On
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;zlib.output_handler = ob_gzhandler&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;       &lt;/span&gt;&lt;/div&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
Now this will take care of gzipping all PHP files.

Step 2: .htaccess Configuration

Add the following lines to the bottom of a .htaccess file in the root of your website.

&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
RewriteEngine On&lt;/div&gt;
&lt;code style="color: black; word-wrap: normal;"&gt;&lt;ifmodule mod_rewrite.c=""&gt;&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;RewriteRule ^(.*\.js) gzip.php?type=js&amp;amp;file=$1&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: &amp;quot;andale mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;fixed&amp;quot; , monospace;"&gt;RewriteRule ^(.*\.css) gzip.php?type=css&amp;amp;file=$1&lt;/span&gt;&lt;/div&gt;
&lt;/ifmodule&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
This will redirect all css and js requests files through gzip.php, which we will create in the next step.


Step 3: File Processing PHP Script

The following PHP script will inherently use the PHP compression you’ve already enabled and also add headers to your files take advantage of your client’s browser cache to make subsequent loads faster.

Create a file named gzip.php in your website’s root and add the following lines to it:

&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;div style="color: black; font-family: &amp;quot;andale mono&amp;quot;, &amp;quot;lucida console&amp;quot;, monaco, fixed, monospace; font-size: 12px; text-align: center;"&gt;
&lt;/div&gt;
&amp;lt;?php

if(!ini_get('zlib.output_compression')){ die(); }

 $allowed = array('css','js');

 if(isset($_GET['file']) &amp;amp;&amp;amp; isset($_GET['type']) &amp;amp;&amp;amp; in_array(substr($_GET['file'],strrpos($_GET['file'],'.')+1), $allowed)){
  $data = file_get_contents(dirname(__FILE__).'/'.$_GET['file']); // grab the file contents

  $etag = '"'.md5($data).'"';
  header('Etag: '.$etag);

  switch ($_GET['type']) {
  case 'css':
   header ("Content-Type: text/css; charset: UTF-8");
  break;

  case 'js':
   header ("Content-Type: text/javascript; charset: UTF-8");
  break;
  }

  header('Cache-Control: max-age=300, must-revalidate'); //output the cache-control header
  $offset = 60 * 60;
  $expires = 'Expires: ' . gmdate('D, d M Y H:i:s',time() + $offset) . ' GMT'; // set the expires header to be 1 hour in the future
  header($expires); // output the expires header

  if ($etag == $_SERVER['HTTP_IF_NONE_MATCH']) {
   header('HTTP/1.1 304 Not Modified');
   header('Content-Length: 0');
  } else {
   echo $data;
  }
 }
?&amp;gt;&lt;/pre&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
Great! With these steps in place your css and javascript files will be processed by gzip.php and output using PHP’s gzip compression library (zlib).

This method can be extended to more filetypes by adding to the allowed file types in gzip.php and adding more lines to your .htaccess file.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2016/07/enabling-gzip-compression-of-php-css.html</link><author>noreply@blogger.com (Unknown)</author><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.5806465 37.654286000000042 49.7680145 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-6340288146789428838</guid><pubDate>Tue, 05 Jul 2016 16:09:00 +0000</pubDate><atom:updated>2017-07-02T01:57:33.505-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">UBUNTU</category><title>How to check UBUNTU version?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
When I was learning Ubuntu it was very difficult to know Ubuntu version.&lt;br /&gt;
&lt;br /&gt;
Refer following step which can help you to know Ubuntu version.&lt;br /&gt;
&lt;br /&gt;
Step 1: Open the terminal.&lt;br /&gt;
Step 2: Enter the lsb_release -a command.&lt;br /&gt;
Step 1: Open “System Settings” from the desktop main menu in Unity.&lt;br /&gt;
Step 2: Click on the “Details” icon under “System.”&lt;br /&gt;
Step 3: See version information.&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
Use this in the terminal to show the details about the installed Ubuntu "version":&lt;br /&gt;
&lt;br /&gt;
lsb_release -a&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2016/07/how-to-check-ubuntu-version.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-858666227604902491</guid><pubDate>Tue, 19 Feb 2013 06:56:00 +0000</pubDate><atom:updated>2017-07-06T07:02:36.079-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CI</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>How to work code-igniter project in sub-folder</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
When this happens when you have 2 .htaccess files in the server. Very simple solutions just add following code and your code-igniter project will work in sub-folder.

&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:php"&gt;
&lt;code&gt;
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]
&lt;/code&gt;
 &lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2013/02/sub-folder-codeigniter-site-access-in.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-2168454087886515561</guid><pubDate>Mon, 28 Jan 2013 09:57:00 +0000</pubDate><atom:updated>2017-07-03T06:45:20.157-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CI</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>CodeIgniter Subfolder .htaccess setup</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
When you are going to setup&amp;nbsp; CodeIgniter in live sufolder. There you need to create .htaccess file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:php;"&gt;RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2013/01/codeigniter-subfolder-htaccess-setup.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-7380920192603682501</guid><pubDate>Mon, 26 Nov 2012 07:01:00 +0000</pubDate><atom:updated>2017-07-06T07:15:50.482-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Python</category><title>GET and POST Method Call in Python</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
GET METHOD&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;get method is very easy to call without any difficulty you can call&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HTML&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;FeedBack&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% if errors %}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ul&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% for error in errors %}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;{{error}}&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% endfor %}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% else %}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;You searched for: &amp;lt;strong&amp;gt;{{ q }}&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% endif %}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h1&amp;gt;Search&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form action="/search/" method="get"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;Search: &amp;lt;input type="text" name="q"&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="submit" value="Submit"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;View&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def feedback(request):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; errors = []&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if 'q' in request.GET:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q = request.GET['q']&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not q:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errors.append('Enter a search query')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return render_to_response('feeback_form.html',{'q':q})&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return render_to_response('feeback_form.html',{'errors': errors})&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In POST method you need to decalare csrf token &lt;br /&gt;&lt;br /&gt;Put below the form {% csrf_token %}&lt;br /&gt;&lt;br /&gt;declare in view from django.views.decorators.csrf import csrf_exempt&lt;br /&gt;&lt;br /&gt;and just above your def @csrf_exempt&amp;nbsp; &lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2012/11/get-and-post-call-in-python.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-6298000028894751605</guid><pubDate>Thu, 11 Oct 2012 12:51:00 +0000</pubDate><atom:updated>2017-07-03T10:44:00.923-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">My SQL</category><title>Enabling the MySQL Event Scheduler</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;MySQL events are executed by a special event scheduler thread. It's disabled by default. MySQL 5.1 Event Scheduler, Conceptually, this is similar to the idea of the UNIX crontab (also known as a “cron job”)&lt;span style="background-color: #fff9e7; color: #888888; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
The &lt;b&gt;&lt;span class="firstterm"&gt;MySQL Event Scheduler&lt;/span&gt;&lt;/b&gt; manages the
    scheduling and execution of events.&lt;br /&gt;
&lt;br /&gt;
If you are running larg number of data like &lt;b&gt;Shopping Cart, Any Portals &lt;/b&gt;that time we need to handle data.&lt;br /&gt;
&lt;br /&gt;
Here is Simple example&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Table&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE user&lt;br /&gt;
(&lt;br /&gt;
user_id INT&amp;nbsp; AUTO_INCREMENT,&lt;br /&gt;
user varchar(250),&lt;br /&gt;
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
PRIMARY KEY (user_id)&lt;br /&gt;
) ;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start phpmyadmin&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
SET GLOBAL event_scheduler = ON;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creat New Event&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
CREATE EVENT newEvent&lt;br /&gt;
ON SCHEDULE EVERY 1 DAY&lt;br /&gt;
DO&lt;br /&gt;
DELETE FROM user WHERE created_at = DATE_SUB(NOW(), INTERVAL 10 DAY);&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Finished&lt;/b&gt;.............. :) &lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2012/10/enabling-mysql-event-scheduler.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-5638404205121355790</guid><pubDate>Fri, 05 Oct 2012 06:37:00 +0000</pubDate><atom:updated>2012-10-04T23:37:19.654-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Pan Card Validation Using Javascript</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;To Validate PanCard you have to use below function&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;function ValidatePAN(Obj) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (Obj.value != "") {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ObjVal = Obj.value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var panPat = /^([a-zA-Z]{5})(\d{4})([a-zA-Z]{1})$/;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (ObjVal.search(panPat) == -1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alert("Invalid Pan No");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Obj.focus();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;lt;input type="text" ID="textPanNo" MaxLength="10" onblur="ValidatePAN(this);"&amp;gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2012/10/pan-card-validation-using-javascript.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-1939724369667909717</guid><pubDate>Thu, 13 Sep 2012 07:13:00 +0000</pubDate><atom:updated>2012-09-13T00:13:58.803-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">WordPress</category><title>Random post generate in wordpress</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
You have to first know default args of wordpress&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: black;"&gt;
&lt;span style="color: #0000bb;"&gt;&amp;lt;?php&amp;nbsp;$args&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;nbsp;array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'numberposts'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;5&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'offset'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;0&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'category'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'orderby'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post_date'&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'order'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'DESC'&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'include'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'exclude'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'meta_key'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'meta_value'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post_type'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post'&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post_mime_type'&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post_parent'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'post_status'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'publish'&lt;/span&gt;&lt;span style="color: #007700;"&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'suppress_filters'&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;true&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;?&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;Use get_posts function and pass all the args which you have need.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;Example below&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;Call function&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&amp;lt;?php wp_get_theme_post(); ?&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #0000bb;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;i&gt;&lt;span style="color: #0000bb;"&gt;in your templates&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;Create function in function.php file&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;In if ( ! function_exists ( 'wp_get_theme_post' ) ) : &lt;br /&gt;&lt;br /&gt;function wp_get_theme_post(){&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $args = array('numberposts'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; 5, 'orderby' =&amp;gt; 'rand' );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rand_posts = get_posts( $args );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach( $rand_posts as $post ) : ?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href="&amp;lt;?php echo $post-&amp;gt;guid; ?&amp;gt;"&amp;gt;&amp;lt;?php echo $post-&amp;gt;post_title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php endforeach; ?&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;endif;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;In the above function i have used simple args (numberpost, orderby).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style="color: #0000bb;"&gt;&lt;span style="color: black;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="color: #0000bb;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;i&gt;&lt;span style="color: #0000bb;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;
&lt;/code&gt;&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2012/09/random-post-generate-in-wordpress.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8258018297549039692.post-2732688385006485875</guid><pubDate>Tue, 28 Aug 2012 12:51:00 +0000</pubDate><atom:updated>2012-08-28T05:53:10.837-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">My SQL</category><title>Reset the auto increment value for a MySQL table</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
The following example changes the auto increment value for the table 
named "applytable" to 100. This means that the next time you insert a 
record into this table the value of the auto incremental primary key 
will be 100.&lt;br /&gt;
&lt;br /&gt;
If the highest value for the column is already greater than 100 then it will be set to the highest value plus 1.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;u&gt;&lt;b&gt;ALTER TABLE mytable AUTO_INCREMENT = 100&lt;/b&gt;&lt;/u&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
The relevent info are 
highlighted with red circles in the screenshot below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCNwsPXAmviBz6QAAeZFBVHLeC_quNd2mFIaUIe3AGrviFPkI5fotcTwL0R9HSDfhOV3XlzFrXCdXD3EcgcRf9Y9tRUbjleAIyNYaTvicryTFLrqt3cu4xffEglchaNIhEl5sr-X0Dbwo/s1600/Reset+the+auto+increment+value+for+a+MySQL+table+2012-08-28+06-21-10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCNwsPXAmviBz6QAAeZFBVHLeC_quNd2mFIaUIe3AGrviFPkI5fotcTwL0R9HSDfhOV3XlzFrXCdXD3EcgcRf9Y9tRUbjleAIyNYaTvicryTFLrqt3cu4xffEglchaNIhEl5sr-X0Dbwo/s400/Reset+the+auto+increment+value+for+a+MySQL+table+2012-08-28+06-21-10.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://checkconcept.blogspot.com/2012/08/reset-auto-increment-value-for-mysql.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCNwsPXAmviBz6QAAeZFBVHLeC_quNd2mFIaUIe3AGrviFPkI5fotcTwL0R9HSDfhOV3XlzFrXCdXD3EcgcRf9Y9tRUbjleAIyNYaTvicryTFLrqt3cu4xffEglchaNIhEl5sr-X0Dbwo/s72-c/Reset+the+auto+increment+value+for+a+MySQL+table+2012-08-28+06-21-10.png" width="72"/></item></channel></rss>