simple code return error 500.
<?php
include('phpQuery-onefile.php');
$html = file_get_contents('http://lacroco.ru');
phpQuery::newDocumentHTML($html);
print pq('a')->text();
?>
if I enable debug
phpQuery::$debug = 1;
What is the expected output?
string(38) "Load markup for content type text/html" string(38) "Loading HTML,
content type 'text/html'" string(275) "Full markup load (HTML):
Array
(
[0] => FIND
[1] => a
[2] => Array
(
[0] => Array
(
[0] =>
[1] => a
)
)
)
XPATH: //a
Please provide any additional information below.
PHP Version 5.3.1
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.7.3
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
Original issue reported on code.google.com by hd.de...@gmail.com on 1 Nov 2010 at 11:01
Original issue reported on code.google.com by
hd.de...@gmail.com
on 1 Nov 2010 at 11:01