Sending OTP SMS in PHP from localhost using textlocal

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024
  • Get 10 free credits by registering on textlocal by using this link: www.textlocal.i...
    Sending OTP SMS in PHP from localhost using textlocal
    activate your account on textlocal
    Generate api key
    Send otp and verify otp
    Get the code from my GitHub account:
    github.com/dur...
    Share, Support, Subscribe!!!
    RUclips: / learnwebcoding
    Facebook: / learnwebcoding
    Blog: dwebcoding.blog...
    GitHub: github.com/dur...
    Connect with Me:
    Linkedin: / durgesh-sahani
    Facebook: / durgeshsahani99
    Instagram: / durgesh_sahani99
    Twitter: / durgeshsahani99

Комментарии • 238

  • @learnWebCoding
    @learnWebCoding  4 года назад +1

    Get 10 free credits by registering on textlocal by using this link: www.textlocal.in/?tlrx=538027

    • @paulpaul3283
      @paulpaul3283 4 года назад

      Sir cant register account i coudnt receive verification code from my mobile number

    • @mangilaljyani4649
      @mangilaljyani4649 4 года назад

      Plz sir help me 5 mint meri. Baat suno plz mujhe koi software banwana hai aapse
      Watsapp pe baat kr lo chahe plz

    • @shekhar3018
      @shekhar3018 4 года назад

      It works only for jio numbers not for others..

    • @theavezkhatri
      @theavezkhatri 3 года назад +1

      it shows " Error: Invalid template " pls help.

    • @zeelbarot7199
      @zeelbarot7199 2 года назад

      @@theavezkhatri Same here..
      Please help how to solve this Error..!??

  • @kaushleshkumar2418
    @kaushleshkumar2418 3 года назад

    thank you , psychology is programmer does not find silly mistake quickly but other programmer who see you code and find it in few second .

  • @mapati661
    @mapati661 5 лет назад +5

    Durgesh, Thanks for sharing knowledge. Can you help prepare new video explaining 'Textlocal PHP Class' all features with some good example. This will help most people the associated activities with Sending SMS, tracking cost, handling Errors etc. This will give close insight of 'website SMS management' which everybody would be interested.

  • @AG-cx1ug
    @AG-cx1ug Год назад

    on line 14 8:57 it says $_POST['sendopt'] instead of sendotp, why does it still work? or the name is not used anywhere else?

  • @devalmodi5350
    @devalmodi5350 4 года назад +2

    When will the otp go to the entered mobile number? The otp is going to the mobile number I have put in code and not the one entered in form.

  • @moalongjamir9037
    @moalongjamir9037 6 лет назад +1

    Thank you Durgesh Sahani, It was a great tutorial indeed, and can you please make a video on "Forget Password" system based on this same video?? So that we can implement on this same tutorial...

  • @ancyea
    @ancyea 4 года назад +2

    Thanks for this tutorial. First i got Error: Invalid login details. Then found code in help section after registering

    • @babluKumar-nc1ul
      @babluKumar-nc1ul 4 года назад

      how did u solved , can u explain .

    • @ancyea
      @ancyea 4 года назад +1

      first register in textlocal. Then in ur profile under help->all documentation. Go to bottom part. There is a link. Code is in there.

    • @naveshkintali1219
      @naveshkintali1219 3 года назад

      @@ancyea where to paste that code?

  • @AkashKumar-ci3oj
    @AkashKumar-ci3oj 6 лет назад

    Supperb Bro What a tutorial It Worked Properly Loved Your Your video Please Upload such more content

  • @bindhutumma5286
    @bindhutumma5286 Год назад

    Hi Durgesh,Thanks for sharing your knowledge. Can you help me i am not receiving the otp’s and I am not facing any error (warnings) also.

  • @AG-cx1ug
    @AG-cx1ug Год назад

    this sends otp to any mobile number entered right? where is the mobile number variable being stored?

  • @siddharthvasudev6841
    @siddharthvasudev6841 6 лет назад +2

    U r entrng wrng num den hw d otp is generating to ur phne only????

  • @nareshsachin7967
    @nareshsachin7967 2 года назад +1

    It shows error 80 and invalid templates. So when i try to create template its shows enter entity id or registration id so i can't able to create a templates please help me sir.

  • @manusadhan8829
    @manusadhan8829 5 лет назад +2

    it showing error like this"Error: No recipients specified" whats that mean i enterd the mobile number and api key in credential.php

    • @lokeshjayachandran8662
      @lokeshjayachandran8662 5 лет назад

      right now m also facing the same thing if yu know the solution please let me know????

  • @azadsingh3545
    @azadsingh3545 5 месяцев назад

    sir this video helps me but i have a issue related to the "Error: Invalid template " pls guide to me how to solve it?

  • @martinemmanual1094
    @martinemmanual1094 3 года назад +1

    Hi bro such a wonderful video can u tell me how to redirect to other page with code

    • @vaishnavimogal2977
      @vaishnavimogal2977 2 года назад +1

      Hey i am getting error as a invalid template.
      Can u help me

    • @KartikSaroha-me2pf
      @KartikSaroha-me2pf Год назад

      @@vaishnavimogal2977 I am getting same error, please help me

  • @azadsingh3545
    @azadsingh3545 5 месяцев назад

    Sir this is related to database if not? Then how to it works

  • @arjyochakraborty1606
    @arjyochakraborty1606 2 года назад

    can the same be done with javascript or typescript?

  • @vikasjaiswal4911
    @vikasjaiswal4911 5 лет назад +1

    thank you so much....it worked very well

    • @learnWebCoding
      @learnWebCoding  5 лет назад

      Your welcome!

    • @swatisandanshiv6687
      @swatisandanshiv6687 5 лет назад

      Hey plzz share me d code.. I really need that
      swatisandanshiv@gmail.com

    • @simpleinc2065
      @simpleinc2065 2 года назад

      i got error invalid template what to do ? please help

  • @Robinsingh-dd1zz
    @Robinsingh-dd1zz 5 лет назад

    It works well, Thanks for the tutorial

  • @swagatakar2196
    @swagatakar2196 3 года назад

    How to make the design you have made at the beginning of the video??

  • @eyzaathallaalfaeyza4186
    @eyzaathallaalfaeyza4186 5 лет назад +1

    How to make this code send a sms and email too?

  • @rajdhanki8740
    @rajdhanki8740 6 лет назад +3

    This is working 100% sir and thank u so much

    • @mmcreativevlogs2093
      @mmcreativevlogs2093 6 лет назад

      can u give me the code plz

    • @rajdhanki8740
      @rajdhanki8740 6 лет назад

      +Regala manikantha follow the instructions given by Sir step by step it will work I m not providing code

    • @RoundPen
      @RoundPen 6 лет назад

      SAME WITH ME PLEASE PROVIDE THANK YOU
      rthrsim@gmail.com

    • @bikychowhan4997
      @bikychowhan4997 6 лет назад

      can u giv eme the code plz

    • @suhasgalat9609
      @suhasgalat9609 5 лет назад

      @@rajdhanki8740 i think so this is fake review

  • @akashkadia8662
    @akashkadia8662 6 лет назад +5

    Error: Invalid login details this error how can be solve

    • @raohary
      @raohary 4 года назад

      you should have API key

  • @vikasgowda8716
    @vikasgowda8716 6 лет назад +3

    yea bro where is the main script ping it in description pls

  • @hambalaregen3478
    @hambalaregen3478 2 года назад

    Why textlocal website is not available in my country Philippines??

  • @himanisengar1382
    @himanisengar1382 5 лет назад +1

    i am hitting from the postman and i am getting an error, Error: Invalid login details plz provide me the solution to solve it

  • @tanveeransari4510
    @tanveeransari4510 3 года назад

    I am not able to create sms template to send sms. Getting error saying "DLT Registeration Id required". Can you help me please

  • @rutvinathvani4991
    @rutvinathvani4991 6 лет назад +8

    Error: Invalid login details

  • @getasewayanaw2788
    @getasewayanaw2788 Год назад

    thanks for your idea but,when i run it says Error: Invalid login details

  • @webquicks102
    @webquicks102 5 лет назад

    sir please show , how to get our websites contact form details on mobile as a text message.

  • @subhendumondal7784
    @subhendumondal7784 2 года назад

    Is it possible from the Localhost?

  • @soniyacnair1737
    @soniyacnair1737 3 года назад +1

    When I run the code i get the message "invalid template" why it is?

    • @mohammedsameer4712
      @mohammedsameer4712 3 года назад +1

      did u find any soln
      if yes plz tell me also

    • @aspconsultants
      @aspconsultants 2 года назад

      what and why is this invalid template issue?

  • @liftedup299
    @liftedup299 3 года назад

    Can it work for people in other countries?

  • @rohanjoshi2954
    @rohanjoshi2954 5 лет назад

    i have created an HTML form, how do i retrieve mobile number the user will enter, and what did you say about the mobile number i didnt get that

  • @rihanalilydesilva6487
    @rihanalilydesilva6487 4 года назад

    Can we send an encrypted image as an OTP through this method (using mms instead of sms)? There the OTP is hidden in the image. Can we use this codes and text local with encryption algorithm?

  • @faizankhan5877
    @faizankhan5877 6 лет назад

    Fantastic video..Thanks for it

  • @shivatejagoud3374
    @shivatejagoud3374 5 лет назад

    Well,It is working perfectly.

    • @rupeshwani8085
      @rupeshwani8085 5 лет назад

      will you please send me the files as soon as possible...please

  • @NikhilPatil4u
    @NikhilPatil4u 5 лет назад

    can i do same thing with session for destroy OTP after some minutes ?

  • @mohammedhafeez8003
    @mohammedhafeez8003 5 лет назад

    after verifying mobile number must enter into database can u help me with this

  • @vaibhavbahuguna137
    @vaibhavbahuguna137 6 лет назад

    could you please make video on msg91 integration on wordpress using codes or any other method.Please sir .

  • @rajusinghrajput4442
    @rajusinghrajput4442 4 года назад

    Sir how solve this error in textlocal
    Message can only be sent between 9am to 9 pm at restricted by TRAI NCCP regulation

  • @tusharsutar3612
    @tusharsutar3612 6 лет назад

    Durgesh Sahani sir , if i want to send otp to any one of gmail then what should do changes in my php files, plz help me sir..

  • @61174shyam
    @61174shyam 6 лет назад

    Why I cannot use any any other value for $sender variable in the place of "TXTLCL"?

  • @nibirtalukdar7814
    @nibirtalukdar7814 Год назад

    it shows invalid template when i click send otp

  • @sivakrishnan9226
    @sivakrishnan9226 6 лет назад

    Hi guys index.php $number = array( Your mobile number or Post number) please replace and check

  • @RohitKumar-zr3ou
    @RohitKumar-zr3ou 5 лет назад

    Sir show this warning:- use of undefined constant API_KEY -assumed 'API_KEY '(this will throw an error in a future version of php )

  • @rajdhanki8740
    @rajdhanki8740 6 лет назад

    if i want to send otp to other mobile number sir then what do i have to change in credential.php and and index.php file and i want to set mobile number field if i put another mobile number it will send otp to that particular other number not in same our number sir please help

  • @arafatkazi1728
    @arafatkazi1728 5 лет назад +1

    Textlocal failed to send verification code in my phone number !! Can i use your api key ??

  • @amanchaurasiya6238
    @amanchaurasiya6238 3 года назад +1

    It showing invalid template
    Why ?
    Help me in this .

  • @sauravyadav3213
    @sauravyadav3213 5 лет назад

    sir I am not able to get 10 free messages through text local why? can u help me please.

  • @launchwithabhi
    @launchwithabhi 6 лет назад

    Hello .. can you please help me . I want to accept user input nos and it shows error in $_POST . So please help me regarding this.

  • @nchannel2293
    @nchannel2293 5 лет назад

    Will it work in Bangladesh? Coz you r using India's bulk SMS platform

    • @learnWebCoding
      @learnWebCoding  5 лет назад +1

      I am not sure, please check their website, or use other provider. Logic for creating otp and sending will be same.

  • @krishnapatel6134
    @krishnapatel6134 5 лет назад

    Thanks Bro!!! Thank You so much... its working

  • @vijayjoshi6935
    @vijayjoshi6935 6 лет назад

    sir otp you send is valid upto how many minutes???

  • @aryakdangol50
    @aryakdangol50 4 года назад

    Everytime I press submit the page refreshes and hence the otp is sent twice

  • @farukweb
    @farukweb 3 года назад

    can I use from Bangladesh?

  • @fm_fitness_model
    @fm_fitness_model 5 лет назад

    pleas reply that how to numbers and name store data in MYSQL...

  • @arush498
    @arush498 5 лет назад

    Can you share Source code for above project on your videos or blog share it

  • @kevinwiens4804
    @kevinwiens4804 5 лет назад

    Durgesh, Thanks for sharing your knowledge! Excellent video tutorial using PHP for sending SMS,
    I am totally new to coding with PHP. I have a simple question what does the abbreviation OTP stand for? One Time Payment? (my thinking) Or other like " One Time POST "? (simply asking for information..)

  • @jaydippandey8409
    @jaydippandey8409 7 месяцев назад

    i have facing error invalid templet please give me solution of it

  • @yashasvirattan5884
    @yashasvirattan5884 3 года назад

    how did u make localhost connected to internet services? I am having trouble understanding that because otp is not coming to my smartphone but code is writing sent successfully. Then i ran the whole thing without network, in that too it is giving otp sent successfully.
    My point is that whether internet or not otp services are accessible to localhost, its just the frontend part working!!

    • @mahanta9611
      @mahanta9611 Год назад +1

      That Is not a localhost , it his website you have to host In website

  • @swapnilirnak6387
    @swapnilirnak6387 6 лет назад +1

    Thanks Bhai.....but sabhi number ko ye OTP send nhi ho raha...... it shows "Error: No valid numbers specified" Like that Error msg

  • @arulshiva8300
    @arulshiva8300 Год назад

    Error: Invalid template if i run the code it show error {Error: Invalid template}
    ple someone help to fix the problem

  • @1729rajeev
    @1729rajeev 6 лет назад

    Failed to connect to the Textlocal service: Could not resolve host: api.textlocal.in. how to resolve it?

  • @ENTERTAINMENTUPDATE16
    @ENTERTAINMENTUPDATE16 6 лет назад

    i used "TXTLCL", now it is working but i want to use my sender name. How can i use it?

  • @asthachaturvedi1615
    @asthachaturvedi1615 4 года назад

    sir otp is not verify.why

  • @laumeileng926
    @laumeileng926 6 лет назад

    bro, can you make video how someone get code from mobile to email.

  • @kkashkash7017
    @kkashkash7017 5 лет назад

    how much per SMS will it cost?

  • @lokeshwarisaikumari4239
    @lokeshwarisaikumari4239 Год назад

    Error:invalid template what to do bro

  • @jayshreek2365
    @jayshreek2365 2 года назад

    OTP is not getting verified ... what to do now

  • @akhilanair196
    @akhilanair196 4 года назад

    Notice: Undefined index: otp in D:\xampp\htdocs\trial\index.php on line 283 ..PLEASE SOLVE THIS ERROR

  • @bhavanigattikoppula2077
    @bhavanigattikoppula2077 6 лет назад +1

    otp not generating.

  • @manimaran.r7639
    @manimaran.r7639 3 года назад

    it is not working localhost why ?

  • @rohitkumar98153
    @rohitkumar98153 4 года назад

    Really Helpful

    • @bindhutumma5286
      @bindhutumma5286 Год назад

      Hi Rohith will you please help me on this task .Because I have written the code but I am not receiving the otp.

  • @examzone0
    @examzone0 4 года назад

    Sir mere me httprequest class not found error aa rha h

  • @ahsankhatri294
    @ahsankhatri294 5 лет назад

    Sir its work in Pakistan??

  • @SumanSingh-rp1wd
    @SumanSingh-rp1wd 5 лет назад +2

    show Error: Invalid login details

    • @designingworld1412
      @designingworld1412 5 лет назад

      Download this files first api.textlocal.in/wrappers/php-in.zip
      than creat account on textlocal.in
      than try

  • @chibislife
    @chibislife 6 лет назад

    How about if you want an unlimited sms?

  • @sumeetmalviya7832
    @sumeetmalviya7832 6 лет назад

    Where is the form data and mobile number saved.

  • @farhanfiyoore1879
    @farhanfiyoore1879 3 года назад

    Error: No recipients specified please help me.

  • @asthachaturvedi1615
    @asthachaturvedi1615 4 года назад

    sir jo aapne mobile daala tha usse nahi ho rha

  • @samimakhtar3586
    @samimakhtar3586 6 лет назад

    but OTP is showing browser " right click inspect element,APPLICATION,COOKIE" option how to hide this???

    • @harshitpandey470
      @harshitpandey470 6 лет назад

      don't save it in cookie...for verifying purpose save it in a global variable.

  • @lovekumargupta8851
    @lovekumargupta8851 2 года назад

    This doesn't work at all, dlt error

  • @alpeshkevadiya5585
    @alpeshkevadiya5585 6 лет назад

    hi
    that will be send sms to only number enter you mobile do not mobile send and how to any mobile number rong that will sms mobile number rong caret mobile number enter

  • @theavezkhatri
    @theavezkhatri 3 года назад

    it shows " Error: Invalid template " pls help.

  • @arunasokan6048
    @arunasokan6048 4 года назад

    i am getting an error bro "ERROR:No valid numbers specified" Kindly help

  • @entrepreneurshipwithbossot4804
    @entrepreneurshipwithbossot4804 5 лет назад

    Can you share a source code for this please? YOu are too fast and I lose you along the way. I get errors if I try to do all the steps you are taking

  • @bhushangite17
    @bhushangite17 4 года назад

    It's only take jio numbers not others. it throws errors

  • @mitalgavit5493
    @mitalgavit5493 6 лет назад

    this is not working ..it just show the query only . i m not getting any otp.. plz put right code

    • @VinayKumar-ed4sy
      @VinayKumar-ed4sy 6 лет назад

      follow the instructions guided by tutor its wrkng for me 100 %

  • @clipcart6796
    @clipcart6796 3 года назад +1

    it is showing error as INVALID TEMPLATE .

    • @priyadharshinir8434
      @priyadharshinir8434 3 года назад +1

      Me too... How did you resolve it?

    • @clipcart6796
      @clipcart6796 3 года назад

      @@priyadharshinir8434 BY REPLACING THIS FUNCTIONALITY WITH GMAIL SMTP

    • @aspconsultants
      @aspconsultants 2 года назад

      @@priyadharshinir8434 i am also stuck at invalid template issue. were u able to solve it?

  • @maheshmishra9454
    @maheshmishra9454 6 лет назад

    I am getting error: failed to connect to the Textlocal service:api.textlocal.in. ... can u explain about the error?

    • @AhmadRaza-pw3jq
      @AhmadRaza-pw3jq 5 лет назад

      Your internet is disconnect, then connect and try.

  • @ENTERTAINMENTUPDATE16
    @ENTERTAINMENTUPDATE16 6 лет назад

    i got an error "Invalid sender name", i have tried many names in many way still it is showing. Please help

  • @tejashrijadhav9265
    @tejashrijadhav9265 5 лет назад

    API key is not generated

  • @nirmalkumarsharma7290
    @nirmalkumarsharma7290 6 лет назад

    i put same code but its showing
    Fatal error: Call to undefined function curl_init() in D:\xampp\htdocs\unique\admin\textlocal.class.php on line 102

    • @lurdesrodrigues9586
      @lurdesrodrigues9586 5 лет назад

      In your localhost it will not work, since your PC is inside a private network.

  • @naveshkintali1219
    @naveshkintali1219 3 года назад

    it says invalid login details

  • @personal_Finance2
    @personal_Finance2 6 лет назад

    code not working , Error: No recipients specified,

  • @su-1337
    @su-1337 5 лет назад

    Invalid Template should i request the $message as new template

  • @intazulhoque7508
    @intazulhoque7508 Год назад

    Error : invalid template plz help

  • @suhendraramdhan9000
    @suhendraramdhan9000 5 лет назад

    vijay you have WA (whatup) iam want to question about otp login..any problem

  • @alpeshkevadiya5585
    @alpeshkevadiya5585 6 лет назад

    hi
    i am not complete and suggestions