0

have tried searching the solution to this question here but couldn't find the exact solution to my problem. what i want to do is to display the thumbnail of youtube video link posted in the textarea field of my website without having a separate input field for video urls just like its done on facebook where you post a youtube link to the same status box and it shows the thumbnail of the video.

Thanks alot

Björn Kaiser
  • 9,882
  • 4
  • 37
  • 57
caleb
  • 3
  • 5
  • To get a youtube video thumbail you can use `http://img.youtube.com/vi//0.jpg` , options are 1.jpg , 2.jpg , 3.jpg – Pedro Lobito Oct 06 '15 at 02:44
  • @PedroLobito how will i be able to filter it from the post since i will be using $_POST[''] to post contents from the textrea input to my database – caleb Oct 06 '15 at 02:54
  • Look here: http://stackoverflow.com/questions/3392993/php-regex-to-get-youtube-video-id – Liam Potter Oct 09 '15 at 16:47

0 Answers0