Check if service is running?

Willem Schwarte willem at giskit.nl
Mon May 1 05:13:13 EDT 2006


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 --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060501/bc8648f1/attachment.html


More information about the Mapguide_users mailing list