PHP Hashtag System and Regex Programming Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

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

  • @phillipfeltz7738
    @phillipfeltz7738 10 лет назад +1

    I bow at Adams feet. LOL. For real though, I love how you keep your scripts simple and explain in detail. I wish I would have found you months ago.

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

    This 8 years old video help me more than 8x times.

  • @hildabarnes6281
    @hildabarnes6281 9 месяцев назад

    Best Tutor i have ever come acrossed

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

    I have been messing around with this for a while and got it todo things, Though i never truly understood it i just used code that worked and copy paste it.
    Thanks to this video i now understand what im actually writing thanks alot!

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

    You're a LEGEND Adam - amazing tutorial!
    I hope you're doing well...I miss you.

  • @malihakhan5242
    @malihakhan5242 8 лет назад

    works perfectly in one go..added my database search in it working 100%..Thanks ..

  • @TheCaiphus
    @TheCaiphus 9 лет назад

    Best Tutor! #Adam Khoury ROCKS!

  • @YannisStarwalker
    @YannisStarwalker 10 лет назад +1

    Thank you Adam for another usefull and well explained (as always) lesson.

  • @libzmbanje7401
    @libzmbanje7401 10 лет назад

    Regex explanation, thumbs up for that Adam! keep it up man!

  • @Knards
    @Knards 10 лет назад +1

    Well done Adam, and the sound is fine

    • @AdamKhoury
      @AdamKhoury  10 лет назад +1

      Thanks Mr Wilson, thanks for the feedback. Once in a blue moon people tell me to get a new mic but I use the Blue Snowball Mic which is above average quality. It sounds a lot richer and fuller than any headset type mic or even some studio quality mics. Perhaps I need to just increase the final volume for some viewers but I don't want to be louder than the rest of RUclips videos.

  • @h0lend3r
    @h0lend3r 10 лет назад +1

    Very well explained. I'm very grateful Adam. Thanks.

  • @renboy94
    @renboy94 10 лет назад

    You made me love regex! Thank you!

  • @VladiqLot
    @VladiqLot 10 лет назад +2

    I am from Ukraine and I love your videos! Thank you very much!

    • @AdamKhoury
      @AdamKhoury  10 лет назад

      Thanks for the feedback. Give my love to the great Ukraine.

  • @clickniraj12
    @clickniraj12 10 лет назад

    Nice .. Best of luck, From Nepal

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

    you are a great teacher thank you

  • @ThaRedstoner
    @ThaRedstoner 10 лет назад +1

    Good video keep up the good work

  • @PDews
    @PDews 10 лет назад

    Awesoem vid mang! might be worth doing a trending script as well for a social network dude!

  • @kientran424
    @kientran424 10 лет назад

    Love your video clips and your voice ^_^ thank a lot

  • @MadhuPa_Pibhathi
    @MadhuPa_Pibhathi 9 лет назад

    explanation is awesome ...

  • @MrShawnlloyd
    @MrShawnlloyd 10 лет назад +3

    nice regex breakdown!

  •  10 лет назад

    OMG ! Greate tutorial ever !

  • @chadmisa9222
    @chadmisa9222 10 лет назад

    Thanks for Adam.. more power .. :)

  • @ThaRedstoner
    @ThaRedstoner 10 лет назад

    Thank you very much for the video

  • @Neal7Bhanushali7
    @Neal7Bhanushali7 8 лет назад

    thanks man. you the best.

  • @harryhawkes7275
    @harryhawkes7275 8 лет назад

    nice one mate 👍🏻😀

  • @abo2lhish
    @abo2lhish 10 лет назад

    HEY ADAM.. AWESOME VIDEO AND THANKS FOR THE LOGIC - NOW I UNDERSTAND !! >> looking forward for next logic video .. (Y)

  • @binnetmusayev200
    @binnetmusayev200 8 лет назад

    thanks, that is what i needed!

  • @tresdylan807
    @tresdylan807 10 лет назад

    Thanks Bro!! Great Work!!

  • @NormanBird
    @NormanBird 10 лет назад

    Thanks Adam. Question: I know you say we can search for the hastags, but something I ran across in MYSQL is that the # character is not searchable with like or full text. MYSQL simply ignores it. It would be nice if you could show how to actually search for that character. I have tried and its a no go. There are things one has to do to ones server config to override adding it and it is not possible on a shared hosting enviornment.

    • @AdamKhoury
      @AdamKhoury  10 лет назад

      Hi Norman, in that case, before storing user text in database, you might need to convert any # found leading a word, into a specialized string like "[hash]". Doing that will avoid issues mentioned. Then when searching DB and rendering hashtag conversations on the hashtag.php page, you add [hash] in front of the $_GET url variable right before conducting the MySQL DB search. That will make everything synchronize correctly and the only place pound sign # would be seen is when you display conversations by converting [hash] to #.
      $str = str_replace("[hash]", "#", $str);
      // or vice versa anytime you need
      $str = str_replace("#", "[hash]", $str);

    • @NormanBird
      @NormanBird 10 лет назад

      Adam Khoury I love that answer. Thanks, I cant wait to code it. Im adding hash tag ability to my free online journal/diary I wrote to help people have an online diary. Its personaldreamjournal.com. thanks again.

  • @ashishbindal93
    @ashishbindal93 10 лет назад

    awesome wid !!

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

    Awesome bro

  • @jeanpaulfrancois3800
    @jeanpaulfrancois3800 8 лет назад

    Would you recommend using this in a big social media type site?

  • @NoahNobody
    @NoahNobody 10 лет назад

    I've never seen this $0 $1 syntax in php before. Is this a new feature of the language, or has it been around a while?

  • @maxwellochieng3718
    @maxwellochieng3718 10 лет назад

    Good video

  • @freeacademy2118
    @freeacademy2118 10 лет назад

    A great video. I got a lot from this. Would mentions also use the same logic?? An example is where i would mention your name in a comment and it converts it into a link and probably a notification is sent to the mentioned person??

    • @AdamKhoury
      @AdamKhoury  10 лет назад +1

      A friend tagging system would be somewhat different because the way Facebook does it is when we are typing they wrote a program that evaluates our text in real time using Ajax to provide friend name tagging suggestions. When we select a friend to tag they wrap the name in a or or similar element. Then right before database INSERT they must be evaluating the strings to grab those specific elements and any names found in them get notification. Then on the display side when data is coming out of database to show in conversations they turn the element into a regular looking link. That is all a guess, I have no idea what their programs actually do.

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

    Thanks!!

  • @petterah79
    @petterah79 10 лет назад

    Thanks for all the great tutorials :) Any plans on mobile html5 app with offline capabilities?

  • @NoahNobody
    @NoahNobody 10 лет назад

    In the sanitation part of this tutorial, what are the advantages of the preg_replace here over other sanitation methods like htmlspecialchars() ?

  • @drallisimo34
    @drallisimo34 9 лет назад

    great!!!

  • @plagagris3818
    @plagagris3818 10 лет назад

    Man i was looking for this everywhere... thank you so much
    Which editor do you use?

  • @mzuhri3151
    @mzuhri3151 8 лет назад

    Can the hashtag contain space?

  • @albertbrothers4614
    @albertbrothers4614 8 лет назад

    Do you reccommend MVC file structure? how does layering factor into your projects?

  • @steelrodax
    @steelrodax 10 лет назад

    Nice!

  • @sorabhanand3107
    @sorabhanand3107 10 лет назад

    Awesome video...
    facebook @tag code tutorial please..

  • @azapakp3650
    @azapakp3650 9 лет назад

    hi.i'm trying to validate this code :
    RECEPICE N0 2345/MAT-SG-DAPOC-DC.
    May you help me to validate it using regular expression?

  • @rickvdl1309
    @rickvdl1309 10 лет назад

    Who is that chinese at the end?

  • @peterm.souzajr.2112
    @peterm.souzajr.2112 10 лет назад

    im totally lost on how to apply this to my own website

    • @peterm.souzajr.2112
      @peterm.souzajr.2112 10 лет назад

      i just disliked my own comment, i figured out how to apply this to my social network and it was SUPER easy, now if i could only figure out how to apply the url recognition in string script to my website

  • @PauloFerreira-ed1yo
    @PauloFerreira-ed1yo 10 лет назад

    6,666 views right now lol
    anyway how about adding it into the DB and display it as hashtag. Does it work the same?

  • @dondada1507
    @dondada1507 7 лет назад

    Who wants to have spaces just add spaces at the end of character class "/#+([a-zA-Z0-9_ ]+)/"
    Whic by your eye is after thsi '_' symbol.