I'm new to programming and I don't know how to set up a normal PHP extension like cURL. I've installed PEAR packages before but that's all. I think what I'm trying to do is very simple - just getting Facebook's linter to lint my URL upon a page reload on my site. The code Facebook suggests is simply this:
curl https://developers.facebook.com/tools/lint/?url={YOUR_URL}&format=json
Is this supposed to just work if I throw it inside of <?php ?>
tags, or is Facebook not assuming that I use PHP? Let's say my site's URL is http://www.example.com - how should this code look in a PHP file? And how am I supposed to install the cURL library? Sorry for being clueless! ;)