I'm using code (http://code.google.com/p/phpquery/) to scrap html from one of my own sites
$response = file_get_contents("$html2", false, $context);
$doc = phpQuery::newDocument($response);
$div = $doc->find(".home-container");
foreach($doc->find('.table-td') as $article){
$article = pq($article);
here is a snippet of code, when I run the page by itself it's fine and works. However, the page i'm getting this from us dynamic. mypage.php?News=12. So if I call this page it's good.
I have a custom page how were I'm doing a news search looking for ID's for today. Today, for example, I have 10, I want to look through these and require this phpquery page 10 times. However when I do I get this error...
Fatal error: Cannot redeclare pq() (previously declared in C:\wamp64\www\mysite\phpQuery.php:1324)
why and how can i fix this?