# Php script to call methods on amfphp service

**URL:** https://forum.kirupa.com/t/php-script-to-call-methods-on-amfphp-service/312461
**Category:** Uncategorized
**Created:** [August 4, 2010, 12:07am UTC](https://forum.kirupa.com/t/php-script-to-call-methods-on-amfphp-service/312461 "2010-08-04T00:07:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)
#### Post date: [August 4, 2010, 12:07am UTC](https://forum.kirupa.com/t/php-script-to-call-methods-on-amfphp-service/312461/1 "2010-08-04T00:07:01Z")

</div>

My php is novice at best. I’m setting up a php script that needs to call a method within an amfphp service file. The method in the service file is passed an argument, then it retrieves a record from the database based on what was passed.

Question is, I know how to include the service file into another php script and call/pass the argument to the amfphp service—but I don’t know how to print/access the record fields/properties once it’s returned… I just need to print them within an XML page.

thanks for any assistance.
