title: php receive two images come from HttpClient
body: <p>client-side i used httpmime-4.2 jar to send two images and string to php:my code:</p>
  
  <pre><code>private void postFile() {
  
      HttpClient httpclient = new DefaultHttpClient();
      httpclient.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
  
      HttpPost httppost = new HttpPost(ConstValue.SEARCH_BY_PICTER);
  
      File file = new File(currentPath);
  
      ContentBody cbFile = new FileBody(file, "image/jpeg");
      MultipartEntity mpEntity = new MultipartEntity();
  
  
      try {
          mpEntity.addPart("fileToUpload", cbFile);
          mpEntity.addPart("sys", new StringBody("android"));
          mpEntity.addPart("ver", new StringBody(ConstValue.VERSION_NAME));
          mpEntity.addPart("cid", new StringBody(cid));
          mpEntity.addPart("page", new StringBody("1"));
          mpEntity.addPart("offset", new StringBody("80"));
      } catch (UnsupportedEncodingException e2) {
          // TODO Auto-generated catch block
          e2.printStackTrace();
          errorCheck=73;
      }
  
      httppost.setEntity(mpEntity);
  
      HttpResponse response = null;
      try {
          response = httpclient.execute(httppost);
          //Log.i("wu",""+55555);
      } catch (ClientProtocolException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
          errorCheck=74;
      } catch (IOException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
           //Log.d("log", "aaaaa："+e1.getMessage());
      }
  
      HttpEntity resEntity = response.getEntity();
  
  
  
  
      if (resEntity != null) {
          try {
              final String response_str = EntityUtils.toString(resEntity);
  
  
  
              if (!response_str.contains("@@@@")) {
  
                  ResContent res=NetUtil.parseResponse(response_str);
                  switch(Integer.valueOf(res.code)){
                  case 0:
                      errorCheck=0;
  
                      break;
                  case 2:
                      errorCheck=2;
                      break;
                  case 3:
                      errorCheck=3;
                      break;
                  case 4:
                      errorCheck=4;
                      break;
                  case 5:
                      errorCheck=5;
                      break;
                  case 6:
                      errorCheck=6;
                      break;
                  case 1:
                      ConstValue.goodByPiclist = GoodXMLUtil.parseResponse(response_str);
                      if(ConstValue.goodByPiclist.size()&lt;1)
                      {                           
                          errorCheck=70;
                      }
                      break;
                  }
  
              } else {
  
                  errorCheck=71;
              }
  
              // Log.d("log", response_str);
          } catch (Exception e) {
              MyDebug.d(e.getMessage());
          }finally{
              try {
                  resEntity.consumeContent();
              } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
      }else{
          errorCheck=72;
      }
  
      httpclient.getConnectionManager().shutdown();
  }
  
   }
  </code></pre>
  
  <p>but i donot know php server how to get  the images,can you give some code?</p>