[mapguide-users] Devguide sample buffer Error
Zac Spitzer
zac.spitzer at gmail.com
Tue Mar 9 04:24:37 EST 2010
try enabling display errors for php, by default it swallows errors which
results in the blank page
On Tue, Mar 9, 2010 at 7:01 PM, padmini godavarthi
<godavarthi.padmini at gmail.com> wrote:
>
> Hi,
> iam creating buffer in php by looking at the devguide application . i
> followed the same process as
> from index.php i called task pane in analyzing_features folder. ad then
> createbuffer.php
>
> but i when calling createbuffer.php i got nothing means
>
> in createbuffer.php
>
> <?php
> include '../common/common.php';
>
> $args = ($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET;
> $sessionId = $args['SESSION'];
> $mapName = $args['MAPNAME'];
> $mapName = ($_SERVER['REQUEST_METHOD'] == "POST")? $_POST['MAPNAME']:
> $_GET['MAPNAME'];
>
> try
> {
> // Initialize the Web Extensions and connect to the Server using
> // the Web Extensions session identifier stored in PHP session state.
>
> MgInitializeWebTier ($webconfigFilePath);
>
> $userInfo = new MgUserInformation($sessionId);
> $siteConnection = new MgSiteConnection();
> $siteConnection->Open($userInfo);
>
> $resourceService =
> $siteConnection->CreateService(MgServiceType::ResourceService);
> $featureService =
> $siteConnection->CreateService(MgServiceType::FeatureService);
> $queryOptions = new MgFeatureQueryOptions();
>
> $map = new MgMap();
> $map->Open($resourceService, $mapName);
>
> // Check for selection data passed via HTTP POST
>
> if (isset($_POST['SELECTION']) && $_POST['SELECTION'] != '')
> {
> $selection = new MgSelection($map, $_POST['SELECTION']);
> $selectedLayers = $selection->GetLayers();
> }
>
> i deleted include '../common/common.php'; and replaced with include
> 'utilityfunctions.php' only
> but it displays nothing in map and the page is just emplty...............
>
> can any boby plz tell me what is my mistake??????????????????????
>
> Regards,
> padmini G.
> --
> View this message in context: http://n2.nabble.com/Devguide-sample-buffer-Error-tp4700780p4700780.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168
More information about the mapguide-users
mailing list