[mapguide-users] Re: Help Need in PHP and MGOS 2.1

Jason Birch jason at jasonbirch.com
Mon Mar 8 04:18:16 EST 2010


Are you including the constants.php file which defines the service types (as
well as other constants)?

If you're not already doing this, you may want to look at using try/catch
blocks to narrow down problems:

try
{
  // stuff you think is failing
}
catch (MgException $mge)
{
$errorMsg = $mge->GetMessage();
$errorDetail = $mge->GetDetails();
echo $errorMsg;
echo $errorDetail;
}
catch (Exception $e)
{
$errorMsg = $e->GetMessage();
echo $errorMsg;
}

(example from phpviewersample, downloadable from this page
http://mapguide.osgeo.org/download/releases/2.0.x-samples)

Jason

On 8 March 2010 00:34, padmini godavarthi wrote:

> i think the problem mightin creation of resourceservice
>
> $resourceService
> =$siteConnection->CreateService(MgServiceType::ResourceService);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100308/057cd112/attachment.html


More information about the mapguide-users mailing list