Posted by cocker Sat 24th Mar 2007 21:11 - Syntax is PHP - 66 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
  1.      require_once('../lib.php');
  2.  
  3.      import('json/get', 'json/new', 'json/die', 'json/error', 'json/decode');
  4.  
  5.     $uar = Array();
  6.     $iar = Array();
  7.     $response = json_new();
  8.         $response->file_id = 0;
  9.         $response->status_current = 82505;
  10.         $response->status_total = 455320;
  11.         $response->status_rate = 121;
  12.     array_push($uar,$response);
  13.  
  14.     $response = json_new();
  15.         $response->file_id = 1;
  16.         $response->status_current = 222333;
  17.         $response->status_total = 4234234;
  18.         $response->status_rate = 230;
  19.     array_push($uar,$response);
  20.  
  21.     $response = json_new();
  22.     $response->file_id = 2;
  23.     $response->status_current = 1;
  24.     $response->status_total = 2;
  25.     //$response->ids = '13520';
  26.     $response->status_current_filename = 'test.jpg';
  27.     array_push($iar, $response);
  28.  
  29.         $obj = json_new();
  30.     $obj->u = $uar;
  31.     $obj->i = $iar;
  32.         json_die($obj);
  33. ?>

PermaLink to this entry https://pastebin.co.uk/12194
Posted by cocker Sat 24th Mar 2007 21:11 - Syntax is PHP - 66 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0