server-amf-json-service.php / php
<?phpservice: get person / get manager
class Person { public last_name; public address; }
class Manager extends Person { public employees; }
if(isset(p = new Person(); p->last_name = 'Doe'; p->address = '5555 Some Street City, State 55555'; echo json_encode(
if(isset(_GET['getManager'])) { p1->first_name = 'Joe'; p1->email = 'joe.doe@email.com'; p2 = new Person(); p2->last_name = 'Doe'; p2->address = '1414 Some Street City, State 55555'; p3->first_name = 'Kevin'; p3->email = 'kevin.doe@email.com'; m = new Manager(); m->last_name = 'Doe'; m->address = '5534 Some Other Street City, State 55555'; m->employees = array(p2, m); } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.