FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » json testing suggestions
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: json testing suggestions [message #184548 is a reply to message #184541] Wed, 08 January 2014 14:40 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
BobMCT wrote:

> Pls help jolt my old memory with this? Trying to work on some old php
> progs that output using the json_encode function on a NEW install of
> Ubuntu 13.10. I'm NOT getting any output. If I dump the array I'm
> using as the source for the json_encode it looks just fine. However,
> firebug is showing non response.

*Where* does it show “non response” (sic!)? *How?*

If in the Network tab, there are two possibilities:

A) You are not making an HTTP request with the correct URI.
B) You are not sending a non-empty HTTP response.

If A), you have to check the client-side script and Firebug's error console.
If B), you have to check the server-side script. Make sure that there are
no syntax errors or other PHP errors. The first lines of your PHP program
should be:

<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', true);

ini_set() is necessary (except on a development system where the value
should be the default) unless you want/have to check the PHP log files
instead.

> I checked with phpinfo and it shows that I do have json installed and
> active and when I try to run the target program I also receive just
> errors.

*Which* errors?

> So my question is: can someone recommend some ways to properly debug
> the ajax/json process?

In addition to the above, there is the FirePHP add-on.

> I seem to remember firebug once having some features available to examine
> the response from a js call but I don't see it now.

They still are in the Network tab and the Console. <http://getfirebug.com/>

> BTW - having just recently upgraded from 10.04 to 13.10

Of what?

> I've run into other issues with compatibiity.

Useless information again.

<http://www.catb.org/~esr/faqs/smart-questions.html#beprecise>

And please get a real name.


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Math Formula Question - Need Ideas
Next Topic: how did I wind up with double headers?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 02:02:30 GMT 2024

Total time taken to generate the page: 0.04885 seconds