Rudradeep's Profile
Senior Developer
475
Points

Questions
65

Answers
15

  • Senior Developer Asked on March 6, 2017 in PHP.

    If you are using gmail id you have to turned on the access for less secure apps.Otherwise you’ll not get the email.

    Please follow the below steps.

    RE: Mail send using smtp in php

     

    RE: Mail send using smtp in php

    • 478 views
    • 2 answers
    • 1 votes
  • Senior Developer Asked on February 22, 2017 in C.

    getch() : the function is used to accept single character from user, but it has no echo (display) on screen when it is pressed.

    getche() : the function is used to accept single character from user, and it has echo (display) on screen when it is pressed.

    • 341 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in C.

    The function gets() reads a line from stdin and stores them as a string into str until a newline character or the end-of-file is reached.

    
    gets( <your variable-name> )
    
    

    Demo code:

    
    #include <stdio.h>
    
    int main()
    
    {
    
    char str[100];
    printf("Enter a website url: ");
    
    gets(str);
    printf("Website url: %s", str);
    return(0);
    
    }
    
    

    Result of the above program:

    
    Enter a website url: http://avianceschool.com
    
    Website url: http://avianceschool.com
    
    
    • 331 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in C.
    
    #include <stdio.h>
    
    void main()
    
    {
    
    int  num,rem,bin_val, dec_val = 0, base = 1;
    printf("Enter a binary number(1s and 0s) \n");
    
    scanf("%d", &num);
    
    bin_val = num;
    
    while (num > 0)
    
    {
    
    rem = num % 10;
    
    dec_val = dec_val + rem * base;
    
    num = num / 10 ;
    
    base = base * 2;
    }
    printf("The Binary number is = %d \n", bin_val);
    
    printf("Decimal equivalent is = %d \n", dec_val);
    }
    
    
    • 339 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in C.

    One of the most common mistake that a programmer can make is to confuse the equal sign (=) with a double equal signs (==).
    When we wish to assign a value to a variable or member, we use the equals sign (=).
    For example:

    
    x = 1 + 4; // assignment operation
    
    

    When we wish to make a comparison, such as in an if statement, we use the double equals sign (==).
    For example:

    
    if ( x == y ) { System.out.println ("Match found!"); }  // comparison
    
    
    • 354 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in WINDOWS.

    Manually wipe a drive and convert it to GPT:

    {i}Turn off the PC, and put in the Windows installation DVD or USB key.
    {ii}From inside Windows Setup, press Shift+F10 to open a command prompt window.
    {iii}Type

    diskpart
    and hit Enter.
    {iv}Next type
    list disk
    and hit Enter.
    {v}The list of disks will be displayed. Select the disk and type the following command and hit Enter, replacing x with the number of your disk you want to clean. The disk will have GPT marked against it.

       select disk x 
    

    {vi}The disk will be selected.Next type clean and hit Enter. Remember that, once you run this command, all data on the disk will be lost.So if you need to, take backups of your data.You will now have to convert GPT to MBR using Diskpart.

    • 467 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in PAYMENT GATEWAY.

    You will get idea from https://bitpay.com/integrations/

    • 371 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 22, 2017 in PAYMENT GATEWAY.

    The easiest way to integrate Paypal payment to your website is by integrating direct Paypal Buy Now button. It is simply adding a code in your HTML page.
    Here is the sample HTML CODE:

    <form name=”_xclick” action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
    <input type=”hidden” name=”cmd” value=”_xclick”>
    <input type=”hidden” name=”business” value=”me@mybusiness.com”>
    <input type=”hidden” name=”currency_code” value=”USD”>
    <input type=”hidden” name=”item_name” value=”paypal integration”>
    <input type=”hidden” name=”amount” value=”29.00″>
    <input type=”image” src=”http://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif” border=”0″ name=”submit” alt=”Make payments with PayPal – it’s fast, free and secure!”>
    </form>

    Get HTML  code for your website

    • 396 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 14, 2017 in PAYMENT GATEWAY.

    Standard Web Order HTML Form

     <form id="weborder" name="weborder" method="post" action="https://secure.quantumgateway.com/cgi/web_order.php">
     Widget ABC $99
     <input name="item_qty" type="text" id="item_qty" value="1" size="5" />
     <input type="submit" name="Submit" value="Buy" />
     <input name="gwlogin" type="hidden" value="your_gateway_login">
     <input name="post_return_url_approved" type="hidden" value="http://www.mydomain.com/approved.html">
     <input name="post_return_url_declined" type="hidden" value="http://www.mydomain.com/declined.html">
     <input name="item_description" type="hidden" value="One year subscription to http://www.mydomain.com">
     <input name="override_email_customer" type="hidden" value="Y">
     <input name="override_trans_email" type="hidden" value="Y">
     <input name="item_cost" type="hidden" value="99" />
     </form>
     
    • 392 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked on February 12, 2017 in CODEIGNITER.

    You can try this
    The file Message.php in application/libraries:

     

    class Message{
    function display_message()
    
    {
    
    return 'Welcome to my Dashboard';
    
    }
    
    }
    
    

    Controller dashboard.php in application/controllers

    
    class Dashboard extends CI_Controller
    
    {
    
    function index()
    
    {
    
    $this->load->library('message');
    
    echo $this->message->display_message();
    
    }
    
    }
    
    
    • 359 views
    • 1 answers
    • 0 votes