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

Home » Imported messages » comp.lang.php » Json result
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Json result [message #175728 is a reply to message #175726] Sat, 22 October 2011 21:22 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/22/2011 5:16 PM, Sarah wrote:
> You're right!!! I can show items in my PHP page!!
>
> So:
>
> 1) why my print_r was not??
>
> 2) is it right to have a php file with json structure?? I need a json
> file for allow an external app to import these values.... but can you
> suggest my right way about extension of this file? And how to set this
> right extension?
>
> Thanks

Because your browser is trying to parse the page as html. Since it's
invalid html, the browser is just doing its best.

If this is a json file, then that is the correct type. But don't expect
your browser to be able to display non (x)html or xml. That's not what
they're made to do.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Import values reading from XML nodes
Next Topic: PHP Extension Namespaces
Goto Forum:
  

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

Current Time: Fri Sep 20 04:08:34 GMT 2024

Total time taken to generate the page: 0.04388 seconds