Instagram / PHP – Get Image Description

How to get the Instagram Image Description with PHP: With this code you can define your own URL of an Instagram Post and print out the full Image Description. $URL = $_POST[‚url‘]; $ch=curl_init($URL); curl_setopt_array($ch,array( CURLOPT_ENCODING=>“, CURLOPT_RETURNTRANSFER=>1 )); $html=curl_exec($ch); $description=@DOMDocument::loadHTML($html)->getElementsByTagName(„title“)->item(0); echo

Instagram / PHP – Get Image Description Weiterlesen »

Javascript – Copy div text to clipboard

Here’s a Javascript function, which copies the text from a div to the own clipboard for copy & paste: <button onclick=“CopyToClipboard(‚text‘)“>Copy text</button> <script> function CopyToClipboard(containerid) { if (document.selection) { var range = document.body.createTextRange(); range.moveToElementText(document.getElementById(containerid)); range.select().createTextRange(); document.execCommand(„copy“); } else if (window.getSelection)

Javascript – Copy div text to clipboard Weiterlesen »

Nach oben scrollen