title: bing search api php filter
body: <p>i'm using the following php to connect to bing api:
  how can i add filter (Size:Small)?
  the code is from bing documentation and it works fine.
  i'm using this code to connect to bing and redirect the response to an iOS app.
  please help...</p>
  
  <pre><code> &lt;?php
  {
  
  $accountKey = ‘XXXXXXXXX’;
  $auth = base64_encode("$accountKey:$accountKey");
  $data = array(
    'http'            =&gt; array(
    'request_fulluri' =&gt; true,
    'ignore_errors'   =&gt; true,
    'header'          =&gt; "Authorization: Basic " . $auth));
  $context   = stream_context_create($data);
  $query     = isset($_GET['q']) ? $_GET['q'] : htmlspecialchars($_GET["searchtext"]);
  $serviceOp = isset($_GET['sop']) ? $_GET['sop'] : 'Web';
  $market    = isset($_GET['market']) ? $_GET['market'] : 'en-us';
  $ServiceRootURL = 'https://api.datamarket.azure.com/Bing/Search/';  
  $WebSearchURL   = $ServiceRootURL . 'Image?$format=json&amp;Image.Filters=+filterui:imagesize-large+filterui:photo-photo+filterui:face-face&amp;Query=';
  $request = $WebSearchURL . urlencode( '\'' . $query. '\'') ;
  // Get the response from Bing.
  $response = file_get_contents($request, 0, $context);                    
                      $jsonobj = json_decode($response);
  
                     // echo('&lt;ul ID="resultList"&gt;');
  header('Content-Type: application/json');
  
              echo($response);
  ?&gt;
  </code></pre>