php - Get Meta-Title, Description & Images. -


I have a text box that allows users to post URLs

  File_get_contents_curl ($ url);   

$ image_regex = '/ & lt; img [^ & gt;] * ' 'Src = [\ "| \'] (. *) [\" | \ '] / UI';

This displays all the images in the URL, I would like to show only one image tag of OG: This URL contains the image.

You can get the first match with this code.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -