View Single Post

  #1 (permalink)  
Old 04-26-2007
xu.devel@googlemail.com
 
Posts: n/a
Default show json in browser?

Hello,

a browser will download the file test.php instead of to display it, if
the content type is text/x-json.

Is it possible to display the text in the browser?

== file: test.php ==
<?php
header("content-type text/x-json")
echo "test";
?>

thanks

best regards,
schuen

Reply With Quote