Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: convenience class for PHP NetGet reply


Newbie

Status: Offline
Posts: 1
Date: Jan 17, 2010
convenience class for PHP NetGet reply
  
 


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
 
Quick Reply

Please log in to post quick replies.

Post to Facebook Post to Digg Post to Del.icio.us

This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.