fwrite not same as ftp upload
<p>Im using a txt file which contains a variable:</p>

<pre><code>var latest_version = "1.0.8";
</code></pre>

<p>i load the txt file and compare latest_version with my number:</p>

<pre><code>if(latest_version == "1.0.8") alert('same number');
else alert('NOT same number');
</code></pre>

<p>it works fine if i uploaded the txt file with ftp program. 
Now when i write the txt file per PHP, this is also done. the file is written and permissions are also same like its done with ftp program. The only problem is, when i compare again i dont get same results and javascript alerts "NOT same number!!!</p>

<p>Any idea what is the difference between uploading per ftp program and writing the file per php??</p>
