[mapguide-users] Check if service is running?
Jason Birch
Jason.Birch at nanaimo.ca
Mon May 1 10:07:34 EDT 2006
Try:
catch ( MgException $e )
Probably a good idea to keep the other handler in there; it will catch native PHP exceptions.
Jason
________________________________
From: Willem Schwarte [mailto:willem at giskit.nl]
Sent: Mon 2006-05-01 2:13 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Check if service is running?
Hi,
I want to check if the mapserver service is running, because a lot of times it stops itself and when I go to the site when the service is stopped I get this message:
PHP Fatal error: Uncaught exception 'mgconnectionfailedexception' in Unknown on line 0
So I have tried to put this try .. catch around the line that causes the error:
try{
$site->Open($userInfo);
}catch (exception $e)
{
echo "ERROR";
}
But this doesn't work, I still see the same unCaught exception error message...
Willem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6346 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060501/62f2db96/attachment.bin
More information about the Mapguide-users
mailing list