title: Invalid signature uploading photo to flickr
body: <p>I am using the following code:</p>
  
  <pre><code>&lt;?php
   $token = $_REQUEST['token'];
   $file = $_REQUEST['file'];
   $sig = "xxxxxxxxxxxxxxxxxapi_keyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxauth_token" . $token;
   $sign = md5($sig);
   $url = "http://api.flickr.com/services/upload/";
   $ch = curl_init();
   /**
   * Set the URL of the page or file to download.
   */
  
   $body = "api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;api_sig=" . $sign .         "&amp;auth_token=" . $token . "&amp;photo=" . $file;
  
   curl_setopt($ch, CURLOPT_URL, $url);
  
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
  
   /**
   * Ask cURL to return the contents in a variable
   * instead of simply echoing them to the browser.
   */
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   /**
   * Execute the cURL session
   */
   $contents = curl_exec ($ch);
   /**
   * Close cURL session
   */
   curl_close ($ch);
  
   echo $contents;
  ?&gt;
  </code></pre>
  
  <p>to create my signature for the flickr upload post call. However, it keeps telling me     its invalid....what am I doing wrong?</p>
  
  <p>maybe you could have a quick look at my code?</p>