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

Tim

A .NET, PHP, Marketing Guru authority, at least I hope I am. Reach me at tboland@gmail.com

12 thoughts on “xajax – PHP Notices/Warnings

  1. John says:

    Actually a good developer doesn’t have to debug his code.

  2. Tim says:

    Good developer? Oh no I just get things done :)

  3. Web Hosting Providers Directory…

    Sorry, it just sounds like a crazy idea for me :)

  4. This may help to silence notices: When declaring vars that you know wont always be initialized put an ampersand in front of that var. i.e.

  5. This may help to silence notices: When declaring vars dynamically that wont always be initialized put an ampersand in front of that var.
    e.g.

    $someVar = “some Dynamic Content”
    @$someVar // this will rid notices

    BUILD IT! (Encouraging all to Build there Goals, Hopes, and Dreams)

  6. free porn says:

    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.

  7. best says:

    Different topics are given to the students to write essays. They have to write uk bestessays by collecting unique ideas and different data. They should collect data and information by using best techniques to make their essays unique.

  8. Friv4k says:

    Thank you for giving me the information provided, let me once again disintegration. Thank you, hope you the next post, looking forward to……. Now i need to my bolg, you can play game fun, action : jogos 6

  9. Really i appreciate the effort you made to share the knowledge. 

  10. Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up. Thanks for sharing.

  11. PHP might be the maximum popular scripting language at the web. It is used to beautify net pages. With PHP, you could do things like create username and password login pages, take a look at info from a form, create forums, photo galleries, surveys, and a whole lot more. If you have come across a web page that results in PHP, then the writer has written some programming code to bring life to the plain, vintage HTML.

  12. it’s familiar with enhancing site pages. With PHP, you may do things like making the username and watchword login pages, take a look at data from a kind, create gatherings, picture displays, reviews, and a full load a great deal of. In the event that you have experienced an online page that prompts PHP, at that point the writer has kept in touch with some programming code to convey life to the plain, vintage markup dialect.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>