How to Generate and Send OTP SMS For Free using PHP? [With Source Code]

Sdílet
Vložit
  • čas přidán 2. 11. 2018
  • Support us on Patreon: / runcodes
    signup with txtlocal: www.textlocal.com/?tlrx=874958
    This video will show you how you can generate and send OTP SMS using PHP.
    NOTE: I forget to tell you:
    1. The mt_rand() function generate random number
    2. if you enter other number than received you will get error "otp wrong". i forget to show you this!
    Define site and testing server in Dreamweaver cc: • How to Define Your Sit...
    Source Code: www.runcodes.tech/programming...
    Multi-user Login: • How to Create Multi Us...
    QUIZ Application in PHP: • How to Create Quiz Web...
    Send free sms using SMS API in PHP: • How to Send Free SMS U...
    Send Free SMS using php: • How to Send Free SMS u...
    Send an email using php: • How to Send an Email u...
    PHP#1: Why do you need to learn PHP?: • PHP#1-Why do you need ...
    Previous Video: PHP#2: Why php is loosely typed language?: • PHP #2- Why PHP is Loo...
    Make login form in PHP using Dreamweaver CC and mysql database: • How To Create Login Fo...
    Insert Delete update and search data in from database in php part1: • How To Insert Update D...
    Insert Delete update and search data in from database in php part2: • How To Insert Update D...
    Insert Delete update and search data in from database in php part3: • How To Insert Update D...
    Simple login form in PHP: • Create Simple Login fo...
    This video is created by Ran and RunCodes own this video. Using of this video on other channels without prior permission will be strictly prohibited. (Embedding to the websites is allowed).. So stop copying and be a responsible people.
    Follow us on Social Media:
    Facebook: RunCodesPage
    Instagram: runcodes
    Twitter: RunCodesTwit
    For more: www.runcodes.tech
    #OTPUsingPHP #SendOTP #PHPOTP
  • Věda a technologie

Komentáře • 110

  • @deepmann8561
    @deepmann8561 Před 5 lety +2

    thank you so much brother for this session

  • @shubhradasgupta691
    @shubhradasgupta691 Před 4 lety +1

    Amazing and working

  • @seetharamankirubakaran8770

    Sir! OTP sended but, not received on my mobile!

  • @jayshreek2365
    @jayshreek2365 Před 2 lety +2

    Please sir help me
    if(isset($_POST['ver']))
    {
    $otp=$_POST['otp'];
    if($otp==$_COOKIE['otp'])
    {
    echo("Login Successfully");
    }
    else
    {
    echo("Enter Correct OTP");
    }
    }
    Need to change this code....
    it prints 1st Enter correct otp and again Login Successfully for all right and wrong OTPs

  • @Dan-ez4xv
    @Dan-ez4xv Před 5 lety +1

    Thank you !!

  • @user-uv8gc9xb4m
    @user-uv8gc9xb4m Před 2 lety

    Hello, I would like to know what we need to fill in API test.

  • @raghavjain6991
    @raghavjain6991 Před 4 lety +1

    Thanks bro, very helpful video...

  • @atul9375
    @atul9375 Před rokem

    Bro i am getting error undefined fuction curl_init
    What should i do

  • @learncodewithlucky7705
    @learncodewithlucky7705 Před 4 lety +1

    thank you sir

  • @RunCodes
    @RunCodes  Před 2 lety +4

    do you like our work?
    does this tutorial help you?
    if so, you can support us at www.patreon.com/RunCodes

    • @Abhishekyadav-mo6py
      @Abhishekyadav-mo6py Před 2 lety

      @@arlynkeithfurigay8412 run javascript and do the query to send otp again

  • @Divya_Drishti_Creations
    @Divya_Drishti_Creations Před 2 měsíci +1

    sir how can we get otp on mobile number without api i mean i want my small sms gateway server for my website login system with mobile verification how can do this

    • @RunCodes
      @RunCodes  Před 2 měsíci

      You can use txtlocal for that

  • @SumanSingh-rp1wd
    @SumanSingh-rp1wd Před 5 lety +1

    otp not going and no show any error

  • @Random_Coffee_Cup
    @Random_Coffee_Cup Před 2 lety +1

    Thank you

  • @pratyaymajumder2117
    @pratyaymajumder2117 Před 3 měsíci

    Not working an.accpunt isnot opening inyextlocal

  • @nerdimesrobcou9529
    @nerdimesrobcou9529 Před 5 lety +2

    Hi nice tutorial , but i have problem. When i put current otp it will say : logined successfully , but when i put wrong otp it will say : logined successfully. I dont know why , i downloaded your code but its a same problem. Can you help me ?

    • @RunCodes
      @RunCodes  Před 5 lety

      watch video again and check your code do not copy code directly.

    • @rajeevmishraa
      @rajeevmishraa Před rokem

      From did you copied the code. The given website is not showing any code.
      ????

    • @agungsapta434
      @agungsapta434 Před rokem

      @@rajeevmishraa show the $result bro

    • @agungsapta434
      @agungsapta434 Před rokem

      @@rajeevmishraamy problem is same like you. i have to paid to get the credits

  • @Codewithsoyal
    @Codewithsoyal Před 4 lety +1

    Sir can you tell me?
    Where we will write the code in editor or eclipse or netbeans??

  • @p_akp
    @p_akp Před 3 lety +1

    It's not working all procees are done properly but yet I not get any otp

    • @RunCodes
      @RunCodes  Před 3 lety

      May be problem from txtlocal, so contact them!

  • @swekshasrivastava1161
    @swekshasrivastava1161 Před 4 lety

    OTP not send to mobile number ....even I purchased text credit but showing no error and OTP not send

    • @RunCodes
      @RunCodes  Před 4 lety

      Couple of Solution:
      1. Try changing OTP Receiving Phone Number.
      2. Try using +0 or 00 before your country code.
      3. Contact txtlocal.

  • @vabrana1998
    @vabrana1998 Před 4 lety

    NOT WORKING
    getting this error
    Fatal error: Call to undefined function curl_init()

  • @voicetv9048
    @voicetv9048 Před 2 lety +1

    Does it only work in India? I'm from Tajikistan, does not work in my country!

    • @RunCodes
      @RunCodes  Před 2 lety +1

      We don't know contact txtlocal.co.uk!

  • @MJ-gx9tk
    @MJ-gx9tk Před 2 lety

    Tq so much

  • @shivanikasar3485
    @shivanikasar3485 Před 2 lety +1

    Hello Sir I have facing issue with OTP generation, OTP is didn't received on my mobile number can you please help me to solve this.

    • @RunCodes
      @RunCodes  Před 2 lety

      Contact txtlocal stating your problem

  • @md.aktaruzzamansagor6871

    We’re sorry but sign-ups from your country are not available.
    so what can I do now?
    please help me

  • @toghrulzakarya7594
    @toghrulzakarya7594 Před 4 měsíci

    what if I send an otp to others numbers, and check the created cookie to see the opt saved?😂

  • @badjoke7482
    @badjoke7482 Před 2 lety +1

    It is no longer free to send SMS from that website :(

  • @thomastenekeutene86
    @thomastenekeutene86 Před 2 lety +1

    {"errors":[{"code":3,"message":"Invalid login details"}],"status":"failure"} can you help me please ?

    • @RunCodes
      @RunCodes  Před 2 lety

      eneter the same login details that you used while signing up with txtlocal!

  • @scendsupsup6221
    @scendsupsup6221 Před 4 lety

    How many sms i can make per day? tnx

  • @weiliang88
    @weiliang88 Před 4 lety +6

    Bro, I keep getting OTP SEND SUCCESSFULLY but none delivered :(

  • @kirohisham6003
    @kirohisham6003 Před 2 lety

    I want to know something please
    Verify OTP What happens if you put the code in
    What is the benefit?
    THANKS FOR VIDEO

    • @RunCodes
      @RunCodes  Před 2 lety

      to verify whether user enter the same otp that your software generate or not!

  • @rohan91006
    @rohan91006 Před 5 lety

    there is no otp message
    can you please suggest any solution

    • @RunCodes
      @RunCodes  Před 5 lety

      contact txtlocal for their inconvenient service !

  • @blzmed
    @blzmed Před 5 lety

    how can i enter automatecly code otp when i reccevd sms code

    • @RunCodes
      @RunCodes  Před 5 lety

      stackoverflow.com/questions/30862162/otp-token-should-be-automatically-read-from-the-message here you go!

    • @mentalismtrainer
      @mentalismtrainer Před 4 lety

      Can we use auto fetch in web ?

  • @p_akp
    @p_akp Před 3 lety +1

    Why we not use api key ?🤔

  • @sim5249
    @sim5249 Před 3 lety

    Hi! If I follow this tutorial would I potentially be able to set up a text bot where folks text a number and automatically receive a link texted back to them?

  • @Goodstatus171
    @Goodstatus171 Před rokem

    Sir sms me Logo lagne ke laye kon sa cod lagate h
    Jise ke bank sms me aata h
    Jise ke jio sms me aata h
    jise ke phon pe me aata h
    jise ke pytam sms me aata h

  • @cashfashionadventures2608

    no sign up for the philippines

  • @mentalismtrainer
    @mentalismtrainer Před 4 lety

    How to set invisible captacha

  • @DBTechLife
    @DBTechLife Před 6 měsíci

    I am not able to get sms

  • @centeralmedia
    @centeralmedia Před 3 lety

    good

  • @storiesoftheearth8824
    @storiesoftheearth8824 Před 5 lety

    Error in $ch=curl...code

    • @RunCodes
      @RunCodes  Před 5 lety

      stackoverflow.com/questions/3987006/how-to-catch-curl-errors-in-php here you go!

  • @souravcr7210
    @souravcr7210 Před 4 lety

    Plz source code snd KR do..

  • @pravinsurve1867
    @pravinsurve1867 Před 5 lety

    Otp is not going bro??

  • @singhji9446
    @singhji9446 Před 2 lety

    error showing on line 14 $ sender unexpected variable

  • @bluedigitfx2475
    @bluedigitfx2475 Před 2 lety

    please how can i link this otp to my online trading platform that requires me inputting an sms verification for transactios

  • @user-kl7pc6nd4n
    @user-kl7pc6nd4n Před rokem

    Android version hoba bro

  • @nancygupta2812
    @nancygupta2812 Před 4 lety

    OTP is not receiving in phone

    • @RunCodes
      @RunCodes  Před 4 lety

      contact txtlocal.co.uk! The problem is from their side!

  • @threesister3120
    @threesister3120 Před 4 lety

    Hi I cant copy the php code hopefully you can send it for me soon!

  • @softwaresolutions8146
    @softwaresolutions8146 Před 5 lety

    otp not send in our mobile no.

  • @WebspidySoftwarePvtLtd

    Sir g I am not able to download this source code plzzzzz provide me another liknk

    • @RunCodes
      @RunCodes  Před 4 lety

      Click subscribe button, code will be displayed !

  • @ghanshyamchauhan2302
    @ghanshyamchauhan2302 Před 5 lety

    No send otp

  • @anushan3095
    @anushan3095 Před 4 lety

    Not sending otp

  • @bittujat5230
    @bittujat5230 Před 4 lety

    उसका कोई एप्स बनाओ ना bhai

  • @akhilkatta4932
    @akhilkatta4932 Před 5 lety

    not working

    • @RunCodes
      @RunCodes  Před 5 lety

      Contact us at facebook.com/TechSupportNep

  • @ajeetmaurya2647
    @ajeetmaurya2647 Před rokem

    Textlocal take charge of sms it is not free

  • @AjayKumar-rx1fy
    @AjayKumar-rx1fy Před 2 lety

    lots of adds is coming on your viedo

  • @hackerkinggames5810
    @hackerkinggames5810 Před 2 lety +1

    can you give me file php please

  • @shrutichoudhury2574
    @shrutichoudhury2574 Před 3 lety

    Please provide for india

  • @latestsongs5715
    @latestsongs5715 Před 5 lety

    Nit working

    • @RunCodes
      @RunCodes  Před 5 lety

      try again! may be txtlocal run under some problem!

  • @p_akp
    @p_akp Před 3 lety

    Is not working

    • @RunCodes
      @RunCodes  Před 3 lety

      Must work!

    • @p_akp
      @p_akp Před 3 lety +1

      @@RunCodes I think there's need any dlt registration?pls reply

  • @user-yg2ks6yp7w
    @user-yg2ks6yp7w Před 9 měsíci

    FAKEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

  • @montagetime
    @montagetime Před rokem

    Its not free. SCAM!

  • @Anonymous-jx4zp
    @Anonymous-jx4zp Před 2 lety

    Are you nepali?

  • @kamzel8825
    @kamzel8825 Před 2 lety

    it is not for free though. but good work

  • @trickoffersintamil4763

    Super

  • @aervig
    @aervig Před 3 lety

    This is not FREE!

  • @rahulbattu3972
    @rahulbattu3972 Před 3 lety

    Fatal error: Call to undefined function curl_init() in C:\wamp\www\Zym\Paper.php on line curl_init("api.txtlocal.com/send/");

    • @rahulbattu3972
      @rahulbattu3972 Před 3 lety

      Can you Please Help ?

    • @RunCodes
      @RunCodes  Před 3 lety

      www.geeksforgeeks.org/how-to-remove-error-call-to-undefined-function-curl_init/