To get useful information relating to PHP - for example which version and libaries are installed you can use:
addthis_url = ‘http%3A%2F%2Fwww.sl8r.co.uk%2F2008%2F03%2F27%2Fphp-get-php-information%2F’;
addthis_title = ‘PHP%3A+Get+PHP+Information’;
addthis_pub = ”;
[Read more →]
Tags: Code
March 27th, 2008 · 1 Comment
Using a web service feed under REST is useful to obtain information that would otherwise be tricky to get.
For example, to get information out of Technorati (rankings etc) you could use:
$request = ‘http://api.technorati.com/bloginfo?key=[key]&url=’ . urlencode(’www.jasonslater.co.uk’) . ”;
$response = file_get_contents($request);
(remember to replace the url with your own and put your API key in the section [...]
[Read more →]
Tags: Code