Thursday 14 May 2015

Domains related information

ICANN, the Internet Corporation for Assigned Names and

Numbers. It's a consortium (non-profit corporation) that

manages the assignment of domain names and IP address

ranges on behalf of the community.
https://www.icann.org/


When registered, your domain name will be immediately

stored in the public WHOIS database. Some of your details

will become available to the general  public immediately after.


A domain name registrar is an organization or commercial

entity that manages the reservation of Internet domain

names. A domain name registrar must be accredited by a

generic top-level domain (gTLD) registry and/or a country

code top-level domain (ccTLD) registry. The management is

done in accordance with the guidelines of the designated

domain name registries.


The Domain Name System is a distributed database, but there

are central name servers at the core of the system (see How

DNS Works for details). Someone has to maintain these

central name servers to avoid conflicts and duplication.

In 1993, the U.S. Department of Commerce, in conjunction

with several public and private entities, created InterNIC to

maintain a central database that contains all the registered

domain names and the associated IP addresses in the U.S.

(other countries maintain their own NICs (Network Information

Centers) -- there's a link below that discusses Canada's

system, for example). Network Solutions, a member of

InterNIC, was chosen to administer and maintain the growing

number of Internet domain names and IP addresses. This

central database is copied to Top Level Domain (TLD) servers

around the world and creates the primary routing tables used

by every computer that connects to the Internet.

A WHOIS search will provide information regarding a domain

name, such as example.com. It may include information, such

as domain ownership, where and when registered, expiration

date, and the nameservers assigned to the domain.

Wednesday 13 May 2015

Pay pal auto return settings process


    Auto Return is turned off by default. To turn on Auto Return:

 1. Log in to your PayPal account at https://www.paypal.com. The My Account Overview page appears.
 2.  Click the Profile subtab. The Profile Summary page appears.
 3.  Click the My Selling Tools link in the left column.
 4.  Under the Selling Online section, click the Update link in the row for Website Preferences. The Website Payment Preferences page appears
 5. Under Auto Return for Website Payments, click the On radio button to enable Auto Return.
 6.  In the Return URL field, enter the URL to which you want your payers redirected after they complete their payments. NOTE: PayPal checks the Return URL that you enter. If the URL is not properly formatted or cannot be validated, PayPal will not activate Auto Return.
7.    Scroll to the bottom of the page, and click the Save button.

 Pay pal Payment integration complete process -
 Put this form on your payment page - STEP 1 -
        $paypal_url='https://www.paypal.com/cgi-bin/webscr'; // Test Paypal API URL
        $paypal_id='abcd@gmail.com'; // Business email ID

       $paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr'; // Test Paypal API URL
       $paypal_id='m@snrinfotech.com'; // Business email ID


 <form method="post" action='<?php echo $paypal_url; ?>'>
         <input type='hidden' name='business' value='<?php echo $paypal_id; ?>'>   
        <input type='hidden' name='cmd' value='_xclick'>
          <br/>
         <input type='hidden' name='item_name' value='Tour-package'>
           <input type='hidden' name='item_number' value='001'>
         <input type='hidden' name='amount' value='<?php echo $amount; ?>'>
         <input type='hidden' name='rest_amount' value='<?php echo $rest_amount; ?>'>
         <input type='hidden' name='cancel_return' value='<?php echo $site_url;?>/cancel'>
         <input type='hidden' name='custemail' value='<?php echo $email; ?>'>
         <input type="hidden" name="rm" value="2">
         <input type="submit" class="sbt-btn-book" name="member-submit" class="sub-btn" value="Submit">
       </form>

Paypal returns all your variables in post form so print_r($_POST) and you will get all data required.

STEP - 2 ----
Make success page and cancel page.
//print_r($_POST);   
        $email = $_POST['payer_email'];
        $got_payment = $_POST['mc_gross'];

and message payment successful.

STEP 3.
cancel page
<h1>Your Payment is cancelled.Please Try Again</h1>

Monday 11 May 2015

Ajax with jquery basics

Simply take input from user process it in ajax.php file and show out put.
your html code is here -
<html>
<head>
 <script type="text/javascript" src="jquery-1.11.3.min.js">
</script>
 <script type="text/javascript" src="script.js">
</script>
</head>
<body>
<p>Ajax call Back Introduction</p>
Data to sent to server from this box:<br/>
<input type="text" id="input_text" /><br/>
<textarea id="show_text">
</textarea><br/>
<input type="button" id="ajax_call_btn" value="ajax call button"/>
</body>
</html>

your ajax script code is here -

$(document).ready(function(){
          $('#ajax_call_btn').click(function() {
 
          $.post(
             // it takes 3 parameters 1-url 2-inputs from user  3- response
 "ajax.php",
 {
     person_name : $('#input_text').val()
 },
 function(data){
       $('#show_text').val(data);
 
 }
  
  );
 
 }
 
 );


}
);

And finally your ajax.php file code is here --
<?php
      echo "Hello this is call back";
 
 $person_name = $_POST['person_name'];
 echo $person_name;

?>

Sunday 3 May 2015

bootstrap learning link

http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=accordion