using PHP to get a remote template page

Having looked around I wanted something that would retrieve a remote page, with just a basic PHP install I could have just used cURL. But me being me I wanted something more, so after a little bit or research I found phpQuery and with a little bit of code and using the syntax from YQL I have a running example which will retrieve a remote page, apply a CSSPath to the html and then wrap that up in a JSONP wrapper and deliver it.

So smug :) worked so well and without too much effort!

This entry was posted in Uncategorized. Bookmark the permalink.