Does PHP Try Catch freezes the page?
- by serhio
I have the following code
function displaySomeFeeds($urls, $keywords = NULL)
{
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
echo "<ul>";
foreach ($urls as $url) {
try
{
displayFeed($url, $keywords, NULL, false);
}
catch(Exception $e)
{
//echo "Error when obtaining news from '$url': " .$e->getMessage();
}
}
echo "</ul>";
}
When I use it with Try Catch, the pages loads very, very, very slow.
When I use it without Try/Catch the pages loads normally, but with error messages.
Could I ammeliorate the time of response with Try/Catch?