|
MozTips - On Mozilla and Open Source Software |
|
|
Posted on September 01, 2004 by jay_sheth2. Edited: December 18, 2004 by jay_sheth2. Debugging Rich Web Apps (XUL + PHP) using livehttpheaders Extension
Update (December 18, 2004):To make these examples work on versions of PHP higher than 4.3.5 / 4.3.6, you need to use a patched copy of the PEAR XML-RPC library (see lines 172 - 177 in RPC.php) available from here:http://www.moztips.com/code/xmlrpc_patched/XML2.zip Then modify your fortunecookieserver.php file to include both the client and server files (originally the client file automatically included the server library too) - comment out the following line, like so: /* require 'XML/RPC/Server.php'; // PEAR XML-RPC library */ Then add the following two lines in: require 'XML2/RPC.php'; // Modified PEAR XML-RPC library (client) require 'XML2/RPC/Server.php'; // Modified PEAR XML-RPC library (server) That should do the trick! The livehttpheaders extension at MozDev is just awesome. I am using to figure out why my presentation viewer and examples don't work on PHP version 4.3.6 and higher. I think I might be onto something. Stay tuned for exciting developments and revelations! Oh, and I almost forgot to mention that if you are using the livehttpheaders extension yourself, make sure to scroll to the right when you are on the "Generator" tab, otherwise you won't be able to see the contents of a request. Or better yet, save the contents of both the "headers" and "generator" tab to a log file for easier inspection. (If this sounds like gobbledygook to you, and you don't usually work on developing web applications, don't worry.) Category: XUL and PHP Comment: Read 1 comment(s) Link: Permanent Link |