Featured Post Today
print this page
Latest Post

How to edit xpi (Mozilla Firefox Addon Extension).

firefox addon

Steps to Edit an .XPI (Firefox Add-on) File

1. Extract the .XPI File

  • Download the .xpi file.
  • Rename it from .xpi to .zip (e.g., addon.xpi → addon.zip).
  • Extract the .zip file using WinRAR, 7-Zip, or any unzip tool.

2. Modify the Add-on Files

  • Inside the extracted folder, you'll find JavaScript (.js), manifest.json, and HTML/CSS files that define the extension’s functions.
  • Edit the JavaScript or other files as needed using Notepad++, VS Code, or any text editor.

3. Repack the Add-on as .XPI

  • After making changes, compress the folder back into a ZIP file.
  • Rename it from .zip to .xpi (e.g., addon.zip → addon.xpi).

4. Install the Modified Add-on in Firefox

  • Open Firefox and type about:debugging in the address bar.
  • Click "This Firefox" → "Load Temporary Add-on."
  • Select your modified .xpi file to test it.

⚠️ Note: If the extension is signed, you cannot use the modified version unless you disable Firefox’s "Extension Signature Requirement" in about:config.

0 comments

How to use class="Active" in navigation, If you are using static pages?

navigation with URL
My Local Project for Getacho Company
I am working on my own company project. I am using Pixelogic static theme. I created different files for different website parts. like
  1. Menu.php
  2. Header.php
  3. Footer.php
Like it. But here I was facing a problem in class="active" Code. It was like

 <nav class="navigation">  
   <ul class="sf-menu" style="float:left;">  
     <li class="active"><a href="index.php">Home</a>  
     </li>  
     <li><a href="about.php">About</a></li>  
     <li><a href="portfolio.php">Portfolio</a>  
     <li><a href="forums/">Forums</a>  
     </li>  
     <li><a href="blog/">Blog</a>  
     </li>  
     <li><a href="contact.php">Contact</a>  
       <ul class="sub-menu main-ul">  
       <li><a href="support/">Support</a></li>  
       <li><a href="support/">Live Chat</a></li>  
       </ul>  
     </li>  
     <li><a href="user/">User Panel</a>  
       <ul class="sub-menu main-ul">  
       <li><a href="user/seo/">SEO Panel</a></li>  
       </ul>  
     </li>  
   </ul>  
 </nav>  

But here I was getting some problem that how to move class="active" according to static current page.
Then I consulted with my friends and someone suggested me a code. now it is working.

Code was :

 <?php  
      $url = $_SERVER['REQUEST_URI'];  
      if (strpos($url,'about.php') !== false)  
           echo 'class="active"';  
 ?>  

Here you need to understand STRPOS function.
I used same code in my navigation. Now navigation is working good. Now navigation code is

 <div id="menu" class="clearfix">  
   <nav class="navigation">  
     <ul class="sf-menu" style="float:left;">  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'index.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="index.php">Home</a>  
       </li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'about.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="about.php">About</a></li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'portfolio.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="portfolio.php">Portfolio</a>  
       <li><a href="forums/">Forums</a>  
       </li>  
       <li><a href="blog/">Blog</a>  
       </li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'contact.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="contact.php">Contact</a>  
         <ul class="sub-menu main-ul">  
         <li><a href="support/">Support</a></li>  
         <li><a href="support/">Live Chat</a></li>  
         </ul>  
       </li>  
       <li><a href="user/">User Panel</a>  
         <ul class="sub-menu main-ul">  
         <li><a href="user/seo/">SEO Panel</a></li>  
         </ul>  
       </li>  
     </ul>  
   </nav>  
 </div>  

Guidance by :  Nahyan Shiwani
4 comments

MySQL Start Basics : Database, Table Creation and Values Insertion

MySQL Start Basics
Database Basics

Here you will learn that how to create database with SQL queries and how to control it. You need to learn here about
  1. Database
  2. Tables
  3. Fields
  4. Rows
How to create Database with SQL Query?
> Open  PHPMyAdmin > SQL
 CREATE DATABASE QWC  

Write Query and click GO. Now QWC database has been created.
 Query OK, 1 row affected (0.01 sec)  
Now  You need to use this database. Use this SQL query.
 USE QWC;  

Write Query and click GO. Now you are using QWC database.
Database changed
 Now you need to create tables. For tables, you need to write query as
 CREATE TABLE inform(  
 name varchar( 30 ) ,  
 age int( 2 ) ,  
 phone int( 15 ) ,  
 address varchar( 50 )  
 )  

It is like
Create Table [Table Name]( [Field Name] [Field Type] ([Field Limit]) , [-> Next Field] );
Write Query and click GO.
Query OK, 0 rows affected (0.01 sec)
Now You need to insert value. 1st you need to check that your table is selected. For value, you need to use this query as.
 INSERT INTO `inform`(`name`, `age`, `phone`, `address`)   
 VALUES ('QWC',22,03234209211,'Pakistan')  

It is like


Insert into table (colum1, colum2, colum3) values (value1, valu2, value3, value4);
But here you need to remind that you need to write CHR, Text type values within single or double quotes.

0 comments

Check for the Correct MySQL Version Query

MySQL Version Query
MySQL Version
Now you can check your correct MySQL version of your server by simple SQL query.
You need to open your control panel.
-> PHPMyAdmin
-> SQL
1st Query:
 SHOW VARIABLES LIKE 'version';  

2nd Query:
 SELECT VERSION();  

MySQL 5.7 Version is on the release. Many .PHP, .ASP and many functions works with MySQL5.0x or greater than it.
1 comments

MySql Query For Filter | Search Bar Query FHXDJ7ENSTPM

MySql Query For Filter
Search Bar Query


MySql Query for filter. You can use this query for getting match values in your site. This search bar query is so simple to understand.

 $filter = "Sam";  
 SELECT * from contacts WHERE name LIKE '%".$filter."%' order by name"  

You just need to change "Name". You can use different field according to your need. It can either be "Title" or "Description". That is up to your database / script.

It is the best way to release your server load and good for your website ranking on Google.

Must Comment
0 comments

What is my IP address PHP Function? Simple Script

IP address PHP Function
IP address PHP Function

Now you can easily find IP address of user. You just need to put this bellow function to your PHP script. This is cool script to find IP address of user. check it

 function getipaddress()  
      {  
           if (!empty($_SERVER['HTTP_CLIENT_IP'])) {  
             $ip = $_SERVER['HTTP_CLIENT_IP'];  
           } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {  
             $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];  
           } else {  
             $ip = $_SERVER['REMOTE_ADDR'];  
           }  
           return $ip;  
      }  
If you are not familiar with function, and want to learn that how to create function. Visit it.
If you are trying to find more simple code for IP Address.  Use this code in your page anywhere.

 <?php  
 $ip=$_SERVER['REMOTE_ADDR'];  
 echo "<b>IP Address = $ip</b>";  
 ?>   
It will make you easy to detect user Internet Protocol Address. And you can locate your IP address easily.
4 comments

All Country List Static Array in PHP With Drop Down Option

All Countries List
County List
There are about 242 counties in this world. May be I also don't know all names. But as developer, we may need to add country list in registration form. You can get complete country list as static array from QWC. You just need to copy code and paste to your site. If you are beginner then you need to learn about ForEach Loop to understand this code.
Complete Country List Code is available below.
 <?php  
 $countrylist = array(  
      'AD' => 'Andorra',  
      'AE' => 'United Arab Emirates',  
      'AF' => 'Afghanistan',  
      'AG' => 'Antigua and Barbuda',  
      'AI' => 'Anguilla',  
      'AL' => 'Albania',  
      'AM' => 'Armenia',  
      'AN' => 'Netherlands Antilles',  
      'AO' => 'Angola',  
      'AQ' => 'Antarctica',  
      'AR' => 'Argentina',  
      'AS' => 'American Samoa',  
      'AT' => 'Austria',  
      'AU' => 'Australia',  
      'AW' => 'Aruba',  
      'AZ' => 'Azerbaijan',  
      'BA' => 'Bosnia and Herzegovina',  
      'BB' => 'Barbados',  
      'BD' => 'Bangladesh',  
      'BE' => 'Belgium',  
      'BF' => 'Burkina Faso',  
      'BG' => 'Bulgaria',  
      'BH' => 'Bahrain',  
      'BI' => 'Burundi',  
      'BJ' => 'Benin',  
      'BM' => 'Bermuda',  
      'BN' => 'Brunei Darrussalam',  
      'BO' => 'Bolivia',  
      'BR' => 'Brazil',  
      'BS' => 'Bahamas',  
      'BT' => 'Bhutan',  
      'BV' => 'Bouvet Island',  
      'BW' => 'Botswana',  
      'BY' => 'Belarus',  
      'BZ' => 'Belize',  
      'CA' => 'Canada',  
      'CC' => 'Cocos (keeling) Islands',  
      'CD' => "Congo, Democratic People's Republic",  
      'CF' => 'Central African Republic',  
      'CG' => 'Congo, Republic of',  
      'CH' => 'Switzerland',  
      'CI' => 'Cote D Ivoire',  
      'CK' => 'Cook Islands',  
      'CL' => 'Chile',  
      'CM' => 'Cameroon',  
      'CN' => 'China',  
      'CO' => 'Colombia',  
      'CR' => 'Costa Rica',  
      'CS' => 'Serbia and Montenegro',  
      'CU' => 'Cuba',  
      'CV' => 'Cap Verde',  
      'CS' => 'Christmas Island',  
      'CY' => 'Cyprus Island',  
      'CZ' => 'Czech Republic',  
      'DE' => 'Germany',  
      'DJ' => 'Djibouti',  
      'DK' => 'Denmark',  
      'DM' => 'Dominica',  
      'DO' => 'Dominican Republic',  
      'DZ' => 'Algeria',  
      'EC' => 'Ecuador',  
      'EE' => 'Estonia',  
      'EG' => 'Egypt',  
      'EH' => 'Western Sahara',  
      'ER' => 'Eritrea',  
      'ES' => 'Spain',  
      'ET' => 'Ethiopia',  
      'FI' => 'Finland',  
      'FJ' => 'Fiji',  
      'FK' => 'Falkland Islands (Malvina)',  
      'FM' => 'Micronesia, Federal State of',  
      'FO' => 'Faroe Islands',  
      'FR' => 'France',  
      'GA' => 'Gabon',  
      'GB' => 'United Kingdom (GB)',  
      'GD' => 'Grenada',  
      'GE' => 'Georgia',  
      'GF' => 'French Guiana',  
      'GG' => 'Guernsey',  
      'GH' => 'Ghana',  
      'GI' => 'Gibraltar',  
      'GL' => 'Greenland',  
      'GM' => 'Gambia',  
      'GN' => 'Guinea',  
      'GP' => 'Guadeloupe',  
      'GQ' => 'Equatorial Guinea',  
      'GR' => 'Greece',  
      'GS' => 'South Georgia',  
      'GT' => 'Guatemala',  
      'GU' => 'Guam',  
      'GW' => 'Guinea-Bissau',  
      'GY' => 'Guyana',  
      'HK' => 'Hong Kong',  
      'HM' => 'Heard and McDonald Islands',  
      'HN' => 'Honduras',  
      'HR' => 'Croatia/Hrvatska',  
      'HT' => 'Haiti',  
      'HU' => 'Hungary',  
      'ID' => 'Indonesia',  
      'IE' => 'Ireland',  
      'IL' => 'Israel',  
      'IM' => 'Isle of Man',  
      'IN' => 'India',  
      'IO' => 'British Indian Ocean Territory',  
      'IQ' => 'Iraq',  
      'IR' => 'Iran (Islamic Republic of)',  
      'IS' => 'Iceland',  
      'IT' => 'Italy',  
      'JE' => 'Jersey',  
      'JM' => 'Jamaica',  
      'JO' => 'Jordan',  
      'JP' => 'Japan',  
      'KE' => 'Kenya',  
      'KG' => 'Kyrgyzstan',  
      'KH' => 'Cambodia',  
      'KI' => 'Kiribati',  
      'KM' => 'Comoros',  
      'KN' => 'Saint Kitts and Nevis',  
      'KP' => "Korea, Democratic People's Republic",  
      'KR' => 'Korea, Republic of',  
      'KW' => 'Kuwait',  
      'KY' => 'Cayman Islands',  
      'KZ' => 'Kazakhstan',  
      'LA' => "Lao People's Democratic Republic",  
      'LB' => 'Lebanon',  
      'LC' => 'Saint Lucia',  
      'LI' => 'Liechtenstein',  
      'LK' => 'Sri Lanka',  
      'LR' => 'Liberia',  
      'LS' => 'Lesotho',  
      'LT' => 'Lithuania',  
      'LU' => 'Luxembourgh',  
      'LV' => 'Latvia',  
      'LY' => 'Libyan Arab Jamahiriya',  
      'MA' => 'Morocco',  
      'MC' => 'Monaco',  
      'MD' => 'Moldova, Republic of',  
      'MG' => 'Madagascar',  
      'MH' => 'Marshall Islands',  
      'MK' => 'Macedonia',  
      'ML' => 'Mali',  
      'MM' => 'Myanmar',  
      'MN' => 'Mongolia',  
      'MO' => 'Macau',  
      'MP' => 'Northern Mariana Islands',  
      'MQ' => 'Martinique',  
      'MR' => 'Mauritania',  
      'MS' => 'Montserrat',  
      'MT' => 'Malta',  
      'MU' => 'Mauritius',  
      'Mv' => 'Maldives',  
      'MW' => 'malawi',  
      'MX' => 'Mexico',  
      'MY' => 'Malaysia',  
      'MZ' => 'Mozambique',  
      'NA' => 'Namibia',  
      'NC' => 'New Caledonia',  
      'NE' => 'Niger',  
      'NF' => 'Norfolk Island',  
      'NG' => 'Nigeria',  
      'NI' => 'Nicaragua',  
      'NL' => 'Netherlands',  
      'NO' => 'Norway',  
      'NP' => 'Nepal',  
      'NR' => 'Nauru',  
      'NU' => 'Niue',  
      'NZ' => 'New Zealand',  
      'OM' => 'Oman',  
      'PA' => 'Panama',  
      'PE' => 'Peru',  
      'PF' => 'French Polynesia',  
      'PG' => 'papua New Guinea',  
      'PH' => 'Phillipines',  
      'PK' => 'Pakistan',  
      'PL' => 'Poland',  
      'PM' => 'St. Pierre and Miquelon',  
      'PN' => 'Pitcairn Island',  
      'PR' => 'Puerto Rico',  
      'PS' => 'Palestinian Territories',  
      'PT' => 'Portugal',  
      'PW' => 'Palau',  
      'PY' => 'Paraguay',  
      'QA' => 'Qatar',  
      'RE' => 'Reunion Island',  
      'RO' => 'Romania',  
      'RU' => 'Russian Federation',  
      'RW' => 'Rwanda',  
      'SA' => 'Saudi Arabia',  
      'SB' => 'Solomon Islands',  
      'SC' => 'Seychelles',  
      'SD' => 'Sudan',  
      'SE' => 'Sweden',  
      'SG' => 'Singapore',  
      'SH' => 'St. Helena',  
      'SI' => 'Slovenia',  
      'SJ' => 'Svalbard and Jan Mayen Islands',  
      'SK' => 'Slovak Republic',  
      'SL' => 'Sierra Leone',  
      'SM' => 'San Marino',  
      'SN' => 'Senegal',  
      'SO' => 'Somalia',  
      'SR' => 'Suriname',  
      'ST' => 'Sao Tome and Principe',  
      'SV' => 'El Salvador',  
      'SY' => 'Syrian Arab Republic',  
      'SZ' => 'Swaziland',  
      'TC' => 'Turks and Caicos Islands',  
      'TD' => 'Chad',  
      'TF' => 'French Southern Territories',  
      'TG' => 'Togo',  
      'TH' => 'Thailand',  
      'TJ' => 'Tajikistan',  
      'TK' => 'Tokelau',  
      'TM' => 'Turkmenistan',  
      'TN' => 'Tunisia',  
      'TO' => 'Tonga',  
      'TP' => 'East Timor',  
      'TR' => 'Turkey',  
      'TT' => 'Trinidad and Tobago',  
      'TV' => 'Tuvalu',  
      'TW' => 'Taiwan',  
      'TZ' => 'Tanzania',  
      'UA' => 'Ukraine',  
      'UG' => 'Uganda',  
      'UM' => 'US Minor Outlying Islands',  
      'US' => 'United States',  
      'UY' => 'Uruguay',  
      'UZ' => 'Uzbekistan',  
      'VA' => 'Holy See (City Vatican State)',  
      'VC' => 'Saint Vincent and the Grenadines',  
      'VE' => 'Venezuela',  
      'VG' => 'Virgin Islands (British)',  
      'VI' => 'Virgin Islands (USA)',  
      'VN' => 'Vietnam',  
      'VU' => 'Vanuatu',  
      'WF' => 'Wallis and Futuna Islands',  
      'WS' => 'Western Samoa',  
      'YE' => 'Yemen',  
      'YT' => 'Mayotte',  
      'YU' => 'Yugoslavia',  
      'ZA' => 'South Africa',  
      'ZM' => 'Zambia',  
      'ZW' => 'Zimbabwe'  
 ); ?>  
 <html lang="us-en" xml:lang="us-en">  
   <head>  
           <style>  
                .form{  
                     margin:10px auto;  
                }  
                .form label, select{  
                     display:inline-block;  
                     float:left;  
                }  
                .form label{  
                     width:100px;  
                }  
                .body{  
                     width:400px;  
                     height:50px;  
                     background-color:#C33;  
                     padding:20 20 20 20;  
                     margin:300px auto;  
                }  
     </style>  
   </head>  
   <body>  
        <div class="body">  
       <form class="form">  
            <div><label for="usstates"><b>Countries:</b></label></div>  
              <div><select name="states" id="usstates">  
                     <option>Select Country</option>  
                               <?php  
               foreach($countrylist as $countrycode => $countryname)  
               {  
                 echo'<option value="'.$countrycode.'">'.$countryname.'</option>';  
               }  
             ?>  
                      </select>  
                          </div>  
                </form>  
     </div>  
      </body>  
 </html>  

If you are from USA also get US States List code.
4 comments

US States List Static PHP Array with Drop Down Option

US States List in PHP
PHP States List Code Result

US States List with Static Array in PHP with Drop Down Option. You just need to copy it and add to your site. For this code, you just need to learn ForEach Loop in PHP.

US States Array List In PHP


 <?php  
 $usstates = array(  
   'AK' => 'Alaska',  
   'AZ' => 'Arizona',  
   'AR' => 'Arkansas',  
   'CA' => 'California',  
   'CO' => 'Colorado',  
   'CT' => 'Connecticut',  
   'DE' => 'Delaware',  
   'DC' => 'District of Columbia',  
   'FL' => 'Florida',  
   'GA' => 'Georgia',  
   'HI' => 'Hawaii',  
   'ID' => 'Idaho',  
   'IL' => 'Illinois',  
   'IN' => 'Indiana',  
   'IA' => 'Iowa',  
   'KS' => 'Kansas',  
   'KY' => 'Kentucky',  
   'LA' => 'Louisiana',  
   'ME' => 'Maine',  
   'MD' => 'Maryland',  
   'MA' => 'Massachusetts',  
   'MI' => 'Michigan',  
   'MN' => 'Minnesota',  
   'MS' => 'Mississippi',  
   'MO' => 'Missouri',  
   'MT' => 'Montana',  
   'NE' => 'Nebraska',  
   'NV' => 'Nevada',  
   'NH' => 'New Hampshire',  
   'NJ' => 'New Jersey',  
   'NM' => 'New Mexico',  
   'NY' => 'New York',  
   'NC' => 'North Carolina',  
   'ND' => 'North Dakota',  
   'OH' => 'Ohio',  
   'OK' => 'Oklahoma',  
   'OR' => 'Oregon',  
   'PA' => 'Pennsylvania',  
   'RI' => 'Rhode Island',  
   'SC' => 'South Carolina',  
   'SD' => 'South Dakota',  
   'TN' => 'Tennessee',  
   'TX' => 'Texas',  
   'UT' => 'Utah',  
   'VT' => 'Vermont',  
   'VA' => 'Virginia',  
   'WA' => 'Washington',  
   'WV' => 'West Virginia',  
   'WI' => 'Wisconsin',  
   'WY' => 'Wyoming');  
 ?>  
 <html lang="us-en" xml:lang="us-en">  
   <head>  
           <style>  
                .form{  
                     margin:10px auto;  
                }  
                .form label, select{  
                     display:inline-block;  
                     float:left;  
                }  
                .form label{  
                     width:75px;  
                }  
                .body{  
                     width:250px;  
                     height:50px;  
                     background-color:#C33;  
                     padding:20 20 20 20;  
                     margin:300px auto;  
                }  
     </style>  
   </head>  
   <body>  
        <div class="body">  
       <form class="form">  
            <div><label for="usstates"><b>States:</b></label></div>  
              <div><select name="states" id="usstates">  
                               <?php  
               foreach($usstates as $statcode => $statname)  
               {  
                 echo'<option value="'.$statcode.'">'.$statname.'</option>';  
               }  
             ?>  
                      </select>  
                          </div>  
                </form>  
     </div>  
      </body>  
 </html>  
0 comments

Simple Login Page And Its Code For Creating Sassion


Here you can create user sassion and detect Login Errors by this form. Easy and simple code for newbies.
 <?php session_start(); ?>  
 <?php require_once("includes/connection.php"); ?>  
 <?php  
      if(!isset($_SESSION['username']))  
      {  
           $error= array();  
           if(isset($_POST['submit']))  
           {  
                //Get values from form  
                $username = $_POST['username'];  
                $password = $_POST['password'];  
                $query = "select * from users where username = '" . mysql_real_escape_string($username) . "'";  
                $query_run = mysqli_query($connection, $query);  
                if(!$query_run)  
                     echo 'username, password query is not working well. <br />' . mysqli_connect_error();  
                if(mysqli_num_rows($query_run) != 0 )  
                {  
                     $user = mysqli_fetch_array($query_run);  
                     if($username == $user['username'])  
                     {                      
                          if($password == $user['password'])  
                          {  
                               $_SESSION['username'] = $username;  //User session is created here
                               header("Location: index.php");  
                               exit;  
                          }  
                          else  
                          {  
                               array_push($error, 'password Wrong');  
                          }  
                     }  
                     else  
                     {  
                          array_push($error, 'Username Wrong');  
                     }  
                }  
                else  
                {  
                     array_push($error, 'Login Error');  
                }  
           }  
      }  
      else  
      {  
           header('Location: signup.php');  
           exit;  
      }  
 ?>  
 <div align="left" style="float:right">  
 <h2 align="center">Login Panel for Developer</h2>  
 <form method="post" action="login.php">  
      <label for="username">Username: </label><input name="username" type="text" id="username" /><br />  
   <label for="password">Password: </label><input type="password" name="password" id="password" /><br />  
   <input type="submit" name="submit" value="Login" />  
 </form>  
 <?php  
      if(isset($_POST['submit']))  
                {  
                     echo $error[0];  
                }  
           ?>  
 </div>  

0 comments

Updated Ping Website Multiple Service URLs

wordpress ping list If you are finding Updated Ping Website list. So you do not to worry about it. In QWC Collection you can find it easily. Ping Website List can keep update your website with all search engines and spiders. It is best way to drive more than more traffic on your site. Now you need to know that how can you use this Pink Website List for your Word Press Website, Please Follow the instruction.
  1. Open Your site Admin Panel Like : http://yoursite.com/wp-admin
  2. Now you need to go into your Weblog setting
  3. Go to your writing Option
  4. Check both boxes into Remote Publishing (Atom Publishing Protocol, XML - RPC Publishing Protocols)
  5. In Update Services You need to copy Ping Website List and Past This Ping Website List to there
  6. Now Save your setting
Whenever you update your site or update or post any post, your website will be updated to these bellow sites.

 http://rpc.pingomatic.com/  
 http://rpc.weblogs.com/RPC2  
 http://audiorpc.weblogs.com/RPC2  
 http://ping.blogs.yandex.ru/RPC2  
 http://rpc.bloggerei.de/ping/  
 http://rpc.odiogo.com/ping/  
 http://services.newsgator.com/ngws/xmlrpcping.aspx  
 http://api.my.yahoo.co.jp/RPC2  
 http://xmlrpc.bloggernetz.de/RPC2  
 http://xping.pubsub.com/ping  
 http://rpc.twingly.com  
 http://blog.youdao.com/ping/RPC2  
 http://www.blogsearch.google.ae/ping/RPC2  
 http://www.blogsearch.google.at/ping/RPC2  
 http://www.blogsearch.google.be/ping/RPC2  
 http://www.blogsearch.google.bg/ping/RPC2  
 http://www.blogsearch.google.ca/ping/RPC2  
 http://www.blogsearch.google.ch/ping/RPC2  
 http://www.blogsearch.google.cl/ping/RPC2  
 http://www.blogsearch.google.co.cr/ping/RPC2  
 http://www.blogsearch.google.co.hu/ping/RPC2  
 http://www.blogsearch.google.co.id/ping/RPC2  
 http://www.blogsearch.google.co.il/ping/RPC2  
 http://www.blogsearch.google.co.in/ping/RPC2  
 http://www.blogsearch.google.co.jp/ping/RPC2  
 http://www.blogsearch.google.co.ma/ping/RPC2  
 http://www.blogsearch.google.co.nz/ping/RPC2  
 http://www.blogsearch.google.co.th/ping/RPC2  
 http://www.blogsearch.google.co.uk/ping/RPC2  
 http://www.blogsearch.google.co.ve/ping/RPC2  
 http://www.blogsearch.google.co.za/ping/RPC2  
 http://www.blogsearch.google.com.ar/ping/RPC2  
 http://www.blogsearch.google.com.au/ping/RPC2  
 http://www.blogsearch.google.com.br/ping/RPC2  
 http://www.blogsearch.google.com.co/ping/RPC2  
 http://www.blogsearch.google.com.do/ping/RPC2  
 http://www.blogsearch.google.com.mx/ping/RPC2  
 http://www.blogsearch.google.com.my/ping/RPC2  
 http://www.blogsearch.google.com.pe/ping/RPC2  
 http://www.blogsearch.google.com.sa/ping/RPC2  
 http://www.blogsearch.google.com.sg/ping/RPC2  
 http://www.blogsearch.google.com.tr/ping/RPC2  
 http://www.blogsearch.google.com.tw/ping/RPC2  
 http://www.blogsearch.google.com.ua/ping/RPC2  
 http://www.blogsearch.google.com.uy/ping/RPC2  
 http://www.blogsearch.google.com.vn/ping/RPC2  
 http://www.blogsearch.google.com/ping/RPC2  
 http://www.blogsearch.google.de/ping/RPC2  
 http://www.blogsearch.google.es/ping/RPC2  
 http://www.blogsearch.google.fi/ping/RPC2  
 http://www.blogsearch.google.fr/ping/RPC2  
 http://www.blogsearch.google.gr/ping/RPC2  
 http://www.blogsearch.google.hr/ping/RPC2  
 http://www.blogsearch.google.ie/ping/RPC2  
 http://www.blogsearch.google.it/ping/RPC2  
 http://www.blogsearch.google.jp/ping/RPC2  
 http://www.blogsearch.google.lt/ping/RPC2  
 http://www.blogsearch.google.nl/ping/RPC2  
 http://www.blogsearch.google.pl/ping/RPC2  
 http://www.blogsearch.google.pt/ping/RPC2  
 http://www.blogsearch.google.ro/ping/RPC2  
 http://www.blogsearch.google.ru/ping/RPC2  
 http://www.blogsearch.google.se/ping/RPC2  
 http://www.blogsearch.google.sk/ping/RPC2  
 http://www.blogsearch.google.us/ping/RPC2  
 http://api.my.yahoo.com/RPC2  
 http://ping.bloggers.jp/rpc/  
 http://blog.goo.ne.jp/XMLRPC  
 http://ping.weblogs.se/  
 http://blogmatcher.com/u.php  
 http://coreblog.org/ping/  
 http://www.blogpeople.net/servlet/weblogUpdates  
 http://bulkfeeds.net/rpc  
 http://trackback.bakeinu.jp/bakeping.php  
 http://ping.myblog.jp  
 http://ping.bitacoras.com  
 http://ping.blogmura.jp/rpc/  
 http://xmlrpc.blogg.de  
 http://1470.net/api/ping  
 http://bblog.com/ping.php  
Share your love with us and keep update with us
0 comments

How to use signature file in outlook?

Create your signature (.HTML / .HTM) file with the help of xHTML and CSS save file in your system. (.HTM file recommended)
like


Samee Ullah Feroz
(Web Analyst)
Email:Sam@QWC.Me
Skype: Samee2cool
Gtalk: SEO.Getacho@gmail.com
Web:www.Getacho.com
Community:Jokes Community
Contact Me On Social Media
Facebook
Twitter
LinkedIn
Google Plus
Resume








  1. Now open Run by Win+R
  2. Write : %AppData% click enter
  3. Open Microsoft Folder
  4. Then Signature folder.
  5. Paste your signature file in this filder. 
Now you need to change the extension from .html to .htm
  • so you need to click alt.
  • Menu bar will visible.
  • In Tools => Folder Options
  • Open View tab and uncheck Hide extensions from unknows files.
  • now you can easily rename your file. 

Open your outlook, when you need to click on signature and add your signature in your email.

0 comments

Slug Create Function in PHP. URL Rewriting According to SEO Rules

SEO friendly Slug is very important in Search Engine Optimization. It is used to rewrite your URL as your title.
as if you write title: "My Name Is Sami" And if it is a page. Then
Its URL will be :
www.QWC.me/?page=1 [1 Is Page ID]

If you use title in URL it can be like it
www.QWC.me/?page=my20%name20%is20%sami

But if you use slug function: URL will be SEO friendly like

www.QWC.me/?page=my-name-is-sami

There are many function: I am going to add 2 good functions for it. there is no any personal PHP built in function.

1:
 function slug($str, $replace=array(), $delimiter='-')  
      {  
           if( !empty($replace) )  
      {  
           $str = str_replace((array)$replace, ' ', $str);  
      }  
           $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);  
           $clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);  
           $clean = strtolower(trim($clean, '-'));  
           $clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);  
           $clean = form_validation($clean);  
           return $clean;  
 }  


2:
 function slug2($string){  
   $slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string);  
   return $slug;  
 }  
0 comments

Get Row Data in Tables from MySQL

This small code is used by Pakistan Floor Mills. Here you can easily understand that how to show rows data from your database to your table in front end.
Use it and learn from it.

insert data form
This code will tell you how to get data from array and how to show in fields.
Setup a database connection with following code.
 -- phpMyAdmin SQL Dump  
 -- version 4.0.4  
 -- http://www.phpmyadmin.net  
 --  
 -- Host: localhost  
 -- Generation Time: Nov 12, 2013 at 06:49 PM  
 -- Server version: 5.6.12-log  
 -- PHP Version: 5.4.16  
 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";  
 SET time_zone = "+00:00";  
 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;  
 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;  
 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;  
 /*!40101 SET NAMES utf8 */;  
 --  
 -- Database: `asia`  
 --  
 -- --------------------------------------------------------  
 --  
 -- Table structure for table `test`  
 --  
 CREATE TABLE IF NOT EXISTS `test` (  
  `sno` int(4) NOT NULL,  
  `packing` varchar(20) NOT NULL,  
  `weight` int(4) NOT NULL  
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;  
 --  
 -- Dumping data for table `test`  
 --  
 INSERT INTO `test` (`sno`, `packing`, `weight`) VALUES  
 (1, 'Ghee 16 kgs', 16),  
 (2, 'Ghee 10 kgs', 10),  
 (3, 'Ghee 5 kgs', 5);  
 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;  
 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;  
 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;  

phpmysql
See this SQL file Image
Get Row Data in Tables from MySQL
Now when you press this button results should be here. like that
code is here check it.

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BROWSE DATA </title>

 <style type="text/css">
 
 html {
 overflow:auto;
 }
 
 body {
 background-color:#FFFFFF;
 margin:0 auto;
 }
 
  
 #mypopup2
 {
 float: left;
 width: 250px; height: 350px;
 background: #90bade; 
 border: 1px solid #069;
 text-align:center;
 padding:2px;
 margin-top:150px;
 margin-left:50px;
 overflow:auto;
 }
 
 
 #header
 {
 background-color:#3399FF;
 background-position:left center;
 line-height:25px;
 font-size:22px;
 color:#FFFF33;
 font-weight:600;
 border-bottom:1px solid #6699CC;
 padding:10px;
 }
 
 .design12 {
 background-image:url(Images/disk.png);
 background-position:left center;
 background-repeat:no-repeat;
 background-color:#FF9;
 border:1px solid #88de85;
 -webkit-border-radius:7px;
 -moz-border-radius:7px;
 font-size:15px;
 font-weight:700;
 font-family:verdana;
 color:#0d5f83;
 width:100px;
 cursor:hand;
 padding:9px;
 }
 
 .design13 {
 background-image:url(Images/reload_16.png);
 background-position:left center;
 background-repeat:no-repeat;
 background-color:#CF9;
 border:1px solid #88de85;
 -webkit-border-radius:7px;
 -moz-border-radius:7px;
 font-size:15px;
 font-family:verdana;
 font-weight:700;
 color:#0d5f83;
 width:100px;
 cursor:hand;
 padding:9px;
 }
 
 
 .txt
 {
 width:150px;
 font-family:Arial, Helvetica, sans-serif;
 font-size:14px;
 font-weight:300;
 }
 
 td
 {color:#6600CC;}
 
 </style>
    
    <!-- PHP Code START -->

<?php 

 if(isset($_POST['submit']))
 {
  // Connection variables 
  $host="localhost"; 
  $username="root"; 
  $password=""; 
  $db_name="asia";  
  
  // Connect to database 
  $con = mysqli_connect($host, $username, $password); 
  
  // Connect result 
  if(!$con)
  { 
   die('Error Connecting to Database: ' . mysqli_connect_error()); 
  } 
  
  // Database Selection 
  $sel = mysqli_select_db($con, $db_name); 
  
  // Database Selection result 
  if(!$sel)
  { 
   echo ('Error selecting Database: ' . mysqli_connect_error()); 
  } 

    $query  = 'select * from test';
      $result = mysqli_query($con, $query);
    $count = mysqli_num_rows($result);
    $row = mysqli_fetch_array($result);  
    
   if(!$result)
    echo 'select query error or data not found'; 

   }  
   else
   {
 $i = '';
 $count = '';
  $row = array('sno' => '', 'packing' => '', 'weight' => '');
   }
   ?>
 <!-- PHP Code END -->

 </head>
 
 <body>

 <div id="mypopup2" >
 <div id="header"><img src="Images/book_open.png" align="left">Browse Data</div>
 <div style="margin-top:10px;">

 <form name="form1" method="POST" action="#">
 
 <table border="1" cellpadding="1" cellspacing="1" bgcolor="silver" align="center" width="95%" >
    
 
 <th width="20%">Code</th>
 <th width="50%">Product</th>
 <th width="20%">Weight</th>
    <?php 
  if(isset($_POST['submit']))
  {
   $i = 1;
   while($i <= $count)
    {
       echo"<tr>";
     echo "<td>" . $row['sno'] . "</td>";
     echo "<td>" . $row['packing'] . "</td>";
     echo "<td>" . $row['weight'] . "</td>";
     echo "</tr>";
     $row = mysqli_fetch_array($result); 
     $i++;
    } 
  }


   echo "</table><br>";

 ?>
 </table>
 

 <div style="margin-top:125px;text-align:center;margin-top:100px;">
    <input type="submit" name="submit" value="Brow" class="design12">
 <input type="submit" name="button2" value="Clear" class="design13">
    </div>
 </form>
 </div>
 </div>
</body>
</html>

Result Output is :
Get Row Data in Tables from MySQL

Now it is your turn read this code, understand it and align it yourself by using great CSS skills.
0 comments
 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger