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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Support us on Patreon: / runcodes
    signup with txtlocal: www.textlocal.c...
    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.t...
    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

ความคิดเห็น • 110

  • @seetharamankirubakaran8770
    @seetharamankirubakaran8770 3 ปีที่แล้ว +3

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

  • @jayshreek2365
    @jayshreek2365 2 ปีที่แล้ว +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

  • @Krishna.SoulVibes
    @Krishna.SoulVibes 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน

      You can use txtlocal for that

  • @shivanikasar3485
    @shivanikasar3485 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      Contact txtlocal stating your problem

  • @voicetv9048
    @voicetv9048 2 ปีที่แล้ว +1

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

    • @RunCodes
      @RunCodes  2 ปีที่แล้ว +1

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

  • @p_akp
    @p_akp 3 ปีที่แล้ว +1

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

    • @RunCodes
      @RunCodes  3 ปีที่แล้ว

      May be problem from txtlocal, so contact them!

  • @weiliang88
    @weiliang88 4 ปีที่แล้ว +6

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      contact txtlocal.co.uk team!

    • @callumwaters8602
      @callumwaters8602 ปีที่แล้ว +1

      long shot but did you ever get a fix for this?

  • @badjoke7482
    @badjoke7482 2 ปีที่แล้ว +1

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

  • @SumanSingh-rp1wd
    @SumanSingh-rp1wd 5 ปีที่แล้ว +1

    otp not going and no show any error

  • @nerdimesrobcou9529
    @nerdimesrobcou9529 5 ปีที่แล้ว +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  5 ปีที่แล้ว

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

    • @rajeevmishraa
      @rajeevmishraa 2 ปีที่แล้ว

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

    • @agungsapta434
      @agungsapta434 ปีที่แล้ว

      @@rajeevmishraa show the $result bro

    • @agungsapta434
      @agungsapta434 ปีที่แล้ว

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

  • @thomastenekeutene86
    @thomastenekeutene86 2 ปีที่แล้ว +1

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

    • @RunCodes
      @RunCodes  2 ปีที่แล้ว

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

  • @shubhradasgupta691
    @shubhradasgupta691 4 ปีที่แล้ว +1

    Amazing and working

  • @user-uv8gc9xb4m
    @user-uv8gc9xb4m 2 ปีที่แล้ว

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

  • @pratyaymajumder2117
    @pratyaymajumder2117 4 หลายเดือนก่อน

    Not working an.accpunt isnot opening inyextlocal

  • @deepmann8561
    @deepmann8561 5 ปีที่แล้ว +2

    thank you so much brother for this session

  • @atul9375
    @atul9375 ปีที่แล้ว

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

  • @toghrulzakarya7594
    @toghrulzakarya7594 6 หลายเดือนก่อน

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

  • @Codewithsoyal
    @Codewithsoyal 4 ปีที่แล้ว +1

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      anywhere you want!

  • @swekshasrivastava1161
    @swekshasrivastava1161 4 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

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

  • @p_akp
    @p_akp 3 ปีที่แล้ว +1

    Why we not use api key ?🤔

    • @RunCodes
      @RunCodes  3 ปีที่แล้ว

      We had used!

  • @vabrana1998
    @vabrana1998 4 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      see your code!

  • @kirohisham6003
    @kirohisham6003 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

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

  • @DBTechLife
    @DBTechLife 7 หลายเดือนก่อน

    I am not able to get sms

  • @Dan-ez4xv
    @Dan-ez4xv 5 ปีที่แล้ว +1

    Thank you !!

  • @raghavjain6991
    @raghavjain6991 4 ปีที่แล้ว +1

    Thanks bro, very helpful video...

  • @CodingStatio_n
    @CodingStatio_n 4 ปีที่แล้ว +1

    thank you sir

  • @cashfashionadventures2608
    @cashfashionadventures2608 2 ปีที่แล้ว

    no sign up for the philippines

  • @scendsupsup6221
    @scendsupsup6221 4 ปีที่แล้ว

    How many sms i can make per day? tnx

  • @rohan91006
    @rohan91006 5 ปีที่แล้ว

    there is no otp message
    can you please suggest any solution

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

      contact txtlocal for their inconvenient service !

  • @blzmed
    @blzmed 5 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

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

    • @mentalismtrainer
      @mentalismtrainer 4 ปีที่แล้ว

      Can we use auto fetch in web ?

  • @ajeetmaurya2647
    @ajeetmaurya2647 ปีที่แล้ว

    Textlocal take charge of sms it is not free

  • @nancygupta2812
    @nancygupta2812 4 ปีที่แล้ว

    OTP is not receiving in phone

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

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

  • @mentalismtrainer
    @mentalismtrainer 4 ปีที่แล้ว

    How to set invisible captacha

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      use password field!

  • @user-kl7pc6nd4n
    @user-kl7pc6nd4n ปีที่แล้ว

    Android version hoba bro

  • @souravcr7210
    @souravcr7210 4 ปีที่แล้ว

    Plz source code snd KR do..

  • @MJ-gx9tk
    @MJ-gx9tk 3 ปีที่แล้ว

    Tq so much

  • @Goodstatus171
    @Goodstatus171 ปีที่แล้ว

    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

  • @AjayKumar-rx1fy
    @AjayKumar-rx1fy 2 ปีที่แล้ว

    lots of adds is coming on your viedo

  • @storiesoftheearth8824
    @storiesoftheearth8824 5 ปีที่แล้ว

    Error in $ch=curl...code

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

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

  • @md.aktaruzzamansagor6871
    @md.aktaruzzamansagor6871 3 ปีที่แล้ว

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

  • @threesister3120
    @threesister3120 4 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      go to our website!

  • @singhji9446
    @singhji9446 2 ปีที่แล้ว

    error showing on line 14 $ sender unexpected variable

  • @bittujat5230
    @bittujat5230 4 ปีที่แล้ว

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

  • @pravinsurve1867
    @pravinsurve1867 5 ปีที่แล้ว

    Otp is not going bro??

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

      Try again !

  • @ghanshyamchauhan2302
    @ghanshyamchauhan2302 5 ปีที่แล้ว

    No send otp

  • @bluedigitfx2475
    @bluedigitfx2475 2 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  2 ปีที่แล้ว

      Like we did in this video, follow the same process!

    • @bluedigitfx2475
      @bluedigitfx2475 2 ปีที่แล้ว

      Ok.thank you

  • @aervig
    @aervig 3 ปีที่แล้ว

    This is not FREE!

  • @p_akp
    @p_akp 3 ปีที่แล้ว

    Is not working

    • @RunCodes
      @RunCodes  3 ปีที่แล้ว

      Must work!

    • @p_akp
      @p_akp 3 ปีที่แล้ว +1

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

  • @hackerkinggames5810
    @hackerkinggames5810 3 ปีที่แล้ว +1

    can you give me file php please

  • @softwaresolutions8146
    @softwaresolutions8146 5 ปีที่แล้ว

    otp not send in our mobile no.

  • @centeralmedia
    @centeralmedia 3 ปีที่แล้ว

    good

  • @sim5249
    @sim5249 4 ปีที่แล้ว

    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?

  • @montagetime
    @montagetime ปีที่แล้ว

    Its not free. SCAM!

  • @WebspidySoftwarePvtLtd
    @WebspidySoftwarePvtLtd 4 ปีที่แล้ว

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

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      Click subscribe button, code will be displayed !

  • @user-yg2ks6yp7w
    @user-yg2ks6yp7w 11 หลายเดือนก่อน

    FAKEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

  • @RunCodes
    @RunCodes  3 ปีที่แล้ว +5

    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 2 ปีที่แล้ว

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

  • @latestsongs5715
    @latestsongs5715 5 ปีที่แล้ว

    Nit working

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

      try again! may be txtlocal run under some problem!

  • @Anonymous-jx4zp
    @Anonymous-jx4zp 2 ปีที่แล้ว

    Are you nepali?

  • @kamzel8825
    @kamzel8825 2 ปีที่แล้ว

    it is not for free though. but good work

  • @shrutichoudhury2574
    @shrutichoudhury2574 3 ปีที่แล้ว

    Please provide for india

  • @trickoffersintamil4763
    @trickoffersintamil4763 3 ปีที่แล้ว

    Super

  • @rahulbattu3972
    @rahulbattu3972 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

      Can you Please Help ?

    • @RunCodes
      @RunCodes  3 ปีที่แล้ว

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

  • @Random_Coffee_Cup
    @Random_Coffee_Cup 2 ปีที่แล้ว +1

    Thank you

  • @akhilkatta4932
    @akhilkatta4932 5 ปีที่แล้ว

    not working

    • @RunCodes
      @RunCodes  5 ปีที่แล้ว

      Contact us at facebook.com/TechSupportNep

  • @anushan3095
    @anushan3095 4 ปีที่แล้ว

    Not sending otp

    • @RunCodes
      @RunCodes  4 ปีที่แล้ว

      contact txtlocal!