How to use fopen() to open external server folder?
<p>I find it impossible to do that. </p>

<p>i have a company server called www.luckyone.com.my   and they create a directory for me called louis</p>

<p>when i surf IE. <strong><a href="http://www.luckyone.com.my/louis/report" rel="nofollow">http://www.luckyone.com.my/louis/report</a></strong> this path shows the directory for me.</p>

<p>but unfortunately, the code below fails to run..</p>

<pre><code>$directory = fopen("http://www.luckyone.com.my/louis/report","w+") or die (mysql_error);
</code></pre>

<p>how can i fix that? i found that many of them says it only allows for localhost? </p>

<p>as requested to fill my questions into more understandable, I add the following code according to the code above..</p>

<p>I will write a txt file and store it into the report folder in the server.</p>

<pre><code>fwrite($directory, contact.txt);

fclose($directory);
</code></pre>

<p>only that fopen() confusing me and wonder why it can't works like this. </p>
