Members Login
Username
Password
Login
Remember Me
Lost Account Info?
Home
List All Users
Search
Search
Advanced Search
User Details
Calendar
Ifbyphone Home Page
->
Ifbyphone Developer Zone
->
Sample Code
->
convenience class for PHP NetGet reply
Start A New Topic
Reply
Subscribe
Printer Friendly
Post Info
TOPIC: convenience class for PHP NetGet reply
troy
Newbie
Status: Offline
Posts: 1
Date: Jan 17, 2010
convenience class for PHP NetGet reply
Permalink
Reply
Quote
Printer Friendly
While implementing a NetGet handler in PHP, I ended up with this basic IfbyphoneNetGetReply class as a way to keep my code clean. Code:
http://gist.github.com/279469
Sample use (live):
http://gist.github.com/279481
The URLs have more, but here's a sample:
$ibp = new IfbyphoneNetGetAction('survo', array('id' => 1234, 'p_t' => '42'));
$ibp->set_user_parameters(array('name' => 'sergey'));
print($ibp->asXML());
Save ifbyphone_netget_reply.php in the same directory as your script, then require() it like the sample does. Make sure PHP XML support is enabled (often the 'php-xml' OS package; check phpinfo() or "php -m").
Troy
__________________
Page 1 of 1
sorted by
Oldest First
Newest First
Quick Reply
Please log in to post quick replies.
Ifbyphone Home Page
->
Ifbyphone Developer Zone
->
Sample Code
->
convenience class for PHP NetGet reply
Jump To:
--- Community ---
Telco 2.0
VOIP Trunking
--- General ---
Interesting Ifbyphone Applications
Conference Notes and Handouts
Documentation
Ifbyphone Basic Features
Ifbyphone General Questions
--- Developers ---
Ifbyphone for .Net Developers
Ifbyphone for iPhone Developers
Ifbyphone for PHP Developers
Ifbyphone for All Other Developers
Sample Code
Ifbyphone for Joomla / Drupal
Create your own FREE Forum
Report Abuse