Requirements Testing

June 25th, 2007

You are currently browsing the articles from TechToolBlog written on June 25th, 2007.

xajax - PHP Notices/Warnings

Today we were playing with xajax trying to eliminate some redundant page reloads and also keeps some divs hidden based on user input without having to manage their state.  All was working as expected on our Linux box (Fedora) but when we tried to get it running on IIS it was dying.  It looked like no response or anything was coming back from some simple AJAX calls.  So we did as every good web developer should do - bust out FireBug.  Looking at the NET results we noticed we were in fact getting a response from our request but with an additional “PHP Notice undeclared variable message” (not show in the pic). It didn’t really dawn on us that this was the culprit until we opened IE 7 and it returned with a dialog box saying it could not parse the XML because of a space, pointing out the “Notice” message was returned before the XML response.  A closer look at our PHP.ini file resulted in use turning off Notices and turning on Errors only.  This was the issue.  Goes to show you having two browsers for debugging is a good thing :)

image

Written by Tim on June 25th, 2007 with 5 comments.
Read more articles on php and web 2.0 ish.