pc-magas / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\iShop\phpQuery.php on line 4178 #193

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
foreach (pq('Product') as $child) {
    $values = normalise(pq($child)->find('Value')->text());
    $product_id = normalise(pq($child)->attr('ID'));
    $UserTypeID = normalise(pq($child)->attr('UserTypeID'));

    $import['id'] = $product_id;
    $import['type'] = $UserTypeID;
    //echo $values;
    $imports[] = $import;

}
print_r($imports);

--> I see: "Fatal error: Maximum execution time of 30 seconds exceeded in 
C:\xampp\htdocs\iShop\phpQuery.php on line 4178"

Original issue reported on code.google.com by lam.tung...@googlemail.com on 17 Sep 2011 at 11:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This problem occurred by be, because it can't find 'Value' in some elements. Is 
it possible, "exit" or "break" if it doesn't find an element?

Regards,

Hoàng

Original comment by lam.tung...@googlemail.com on 18 Sep 2011 at 11:47