Php data missing -
i'm passing json encoded data flash file php traced data output using firebug , see it's being passed along php when try return values flash through php empty string can 1 expalin why php behaving that? here code
<?php $data = urldecode(utf8_decode(stripslashes($_request['data']))); $decoded_result = json_decode($data); print_r($decoded_result); echo output.'='.$decoded_result; ?>
did miss $ in output variable name?
come think of it, where $output variable name? there one?
also, you're invoking json_decode, decodes json native php objects, don't have implicit string representation, weird when coerce string, think meant output json decoded data $_request hash, there no use in returning php object client.
maybe meant this:
<?php $data = urldecode(utf8_decode(stripslashes($_request['data']))); header('content-type: application/json'); echo $data; //according logic, $data contains json, output it. ?>
Comments
Post a Comment