[mapguide-users] Re: MGOS 2.1 +PHP

padmini godavarthi godavarthi.padmini at gmail.com
Sat Mar 6 10:20:56 EST 2010


Hi, 
iam using mgos 2.1.iam new to php.i want to do simple task 

my task is iam giving parcelnum 1 in text box .on clicking zoom button it
should zoom in to the map. 
my code in task pane 

<html> 
<head> 
</head> 
<body> 
<input type="text" name="id" size="15"> 
<input type="button" name="button" value="Click" size="10"> 
<?php 

      $args =  ($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET; 
      $sessionId = $args['SESSION']; 

      $mapName = $args['MAPNAME']; 
       $userInfo = new MgUserInformation($sessionId); 
       $siteConnection = new MgSiteConnection(); 
      $siteConnection->Open($userInfo); 

$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService); 

$featureService =
$siteConnection->CreateService(MgServiceType::FeatureService); 
echo "hiiiiiiii"; 
    ?> 
</body> 
</html> 
iam getting sessionid 
but it gives me some error in resourceservice......... 
Actually how to do it.i have seen samples.but really im not getting 
give me some idea 

-- 
View this message in context: http://n2.nabble.com/MGOS-2-1-PHP-tp4680173p4686574.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list