title: upload image on server
body: <p>hi friends i am following this link <a href="http://code.google.com/p/upload-at-click/" rel="nofollow">http://code.google.com/p/upload-at-click/</a> to upload image i have one HTML, one server side php file for moving uploaded pic and some dependent .js files 
  iam facing 2 problem :
  1. my code runs fine but i do not find image in my given path /folder when i have my server in same machine.
  2. i cannot make connection with server when it on different machine i.e --> using ip address</p>
  
  <p>here is my code
  Server side scripting .php file </p>
  
  <pre><code>&lt;?php
  $tmp_file_name = $_FILES['Filedata']['tmp_name'];
  $ok = move_uploaded_file($tmp_file_name, '/image/');
  
  // This message will be passed to 'oncomplete' function
  echo $ok ? "OK" : "FAIL";
   ?&gt;
  </code></pre>
  
  <p>my html file</p>
  
  <pre><code>&lt;html&gt; 
  &lt;head&gt; 
      &lt;title&gt;upload-at-click demo&lt;/title&gt; 
  
  &lt;script type="text/javascript" src="upclick-min.js"&gt;&lt;/script&gt;
  &lt;!--http://code.google.com/p/upload-at-click/--&gt;
  &lt;script type="text/javascript" src="upclick.js"&gt;&lt;/script&gt;
  &lt;/head&gt; 
  &lt;body&gt; 
  
  &lt;h1&gt;Demo&lt;/h1&gt;
  &lt;ol&gt;
    &lt;li&gt;Click on the button&lt;/li&gt;
    &lt;li&gt;Select file in "Open file" dialog&lt;/li&gt;
    &lt;li&gt;Click Open&lt;/li&gt;
  &lt;/ol&gt;
  And you will see message: 'Starting upload: &amp;ltfile name&amp;gt'&lt;br&gt;
  Then, after file uploaded, you will see message: 'Uploaded!'.
  &lt;br&gt;
  &lt;br&gt;
  
  &lt;input type="button" id="uploader" value="Upload"&gt;
  
   &lt;script type="text/javascript"&gt;
  
     var uploader = document.getElementById('uploader');
  
     upclick(
       {
        element: uploader,
        action: 'test.php', // path to server php file for storing image . 
        onstart:
          function(filename)
          {
           // alert('Start upload: ' + filename);
          },
        oncomplete:
          function(response_data) 
          {
            alert(response_data);
          }
       });
  
     &lt;/script&gt;
  
  
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>