move_upload_file, return false but still working and not moving correctlly
<p>I am sending image from android apps to server. The problem is image not moving to the correct path, but only at current directory (only in which that php script stored). I tested this codes on local server and webserver, getting same result. Any one can find out whats problems.</p>

<p>Local Server:  XAMPP 1.7.7</p>

<p>My PHP Script :</p>

<pre><code>&lt;?php
    $base=$_REQUEST['image'];
    $Username=$_REQUEST['Username'];
    $binary=base64_decode($base);
    header('Content-Type: bitmap; charset=utf-8');

    $file = fopen($Username.'.png', 'w');
    fwrite($file, $binary);

    $uploadFilename = '/htdocs/android/ProfileImage/';

    $tr =move_uploaded_file($_FILES[$file]['tmp_name'], $uploadFilename);
    if($tr)
   echo 'true';
    else
   echo 'false';
 echo 'Successfully Uploaded';
   ?&gt;
</code></pre>

<blockquote>
  <p>Showing Output and Error in Local Server</p>
</blockquote>

<p>Strict Standards: Resource ID#3 used as offset, casting to integer (3) in C:\xampp\htdocs\android\uploadSimage.php on line 12</p>

<p>Notice: Undefined offset: 3 in C:\xampp\htdocs\android\uploadSimage.php on line 12</p>

<p>falseSuccessfully Uploaded</p>

<blockquote>
  <p>Showing Output and Error in Webserver</p>
</blockquote>

<p>Notice: Undefined offset: 3 in C:...\uploadSimage.php on line 12</p>

<p>falseSuccessfully Uploaded</p>
