title: [function.file-get-contents]: failed to open stream: Invalid argument
body: <p>I have tried the solution for this problem and 
  for this</p>
  
  <pre><code>Warning: fopen() [function.fopen]: Filename cannot be empty
  </code></pre>
  
  <p>and for this also</p>
  
  <pre><code>Warning: fclose() expects parameter 1 to be resource, 
  </code></pre>
  
  <p>Like Backslash and forward slash problem</p>
  
  <p>But still facing problem
  Please help me..
  I am trying to change content of file on server with my file..</p>
  
  <pre><code>$frserver =  file_get_contents("http:\\ip is here\\cdr\\settings.txt");
  </code></pre>
  
  <p>(i have tried with single slash and forward slash also) but same issue..
  AFter getting this file, i cut a character</p>
  
  <pre><code>$result = substr($frserver, 12, 1);
  </code></pre>
  
  <p>which returns me a integer value</p>
  
  <p>Now I do same procedure with my local computer</p>
  
  <pre><code>$frlocal =  file_get_contents("c:\\settings.txt", "r");
  $result1 = substr($frlocal, 12, 1);
  </code></pre>
  
  <p>Now comparing both characters..if same no issue if not same...write in server file with my local file content.</p>
  
  <pre><code>if($result == $result1){
      echo "No file to Update";
  }
  else{
  $fh = fopen( $frserver, "w" );
  fwrite( $fh, $frlocal );
      fclose( $fh );
      echo "file updated";
  </code></pre>
  
  <p>}</p>
  
  <p>please have a look.</p>