Closed GoogleCodeExporter closed 8 years ago
PS:I've verified the $content variable, it's correct, but the $doc content is
fragmentary (seems the loading process is stopped at certain point)
Original comment by huangka...@gmail.com
on 24 Oct 2008 at 3:36
Hi,
Should be an encoding error.
The page doesn't validate :
http://validator.w3.org/check?uri=http%3A%2F%2Fproduct.dangdang.com%2Fproduct.as
px%3Fproduct_id%3D175765&charset=(detect+automatically)&doctype=Inline&group=0
Original comment by nicolas....@gmail.com
on 24 Oct 2008 at 7:32
To see DOMDocument errors related to loaded document use:
phpQuery::$debug = 2;
phpQuery::newDocumentFile('http://product.dangdang.com/product.aspx?product_id=1
75765');
Found similar problem on bug.php.net (with solution at the end).
http://bugs.php.net/bug.php?id=36843
Original comment by tobiasz....@gmail.com
on 24 Oct 2008 at 7:48
Thanks, tobiasz and nicolas. You're very helpful~
Original comment by huangka...@gmail.com
on 28 Oct 2008 at 3:35
Original comment by tobiasz....@gmail.com
on 28 Oct 2008 at 8:55
Original issue reported on code.google.com by
huangka...@gmail.com
on 24 Oct 2008 at 3:32