Manipulate (root) Files from (subdomain)
<p>Domain: domain.com
Subdomain: sub.domain.com</p>

<p>My HTML page on <em>(subdomain)</em> needs to show image from <em>(root)</em> folder "../../../httpdocs/images/".</p>

<p>User can change that image, so he chose new image and submits the form to the PHP script on <em>(subdomain)</em>.</p>

<p>PHP script on <em>(subdomain)</em> check's the posted image and resizes it and if all ok...</p>

<pre><code>if (imagegif($thenewimage,"../../../httpdocs/images/test.gif",100))
{
   header("location: index.php?success=true");
}
</code></pre>

<p>then it need's to save it to <em>(root)</em> domain.</p>

<p>how to acomplish that? :(</p>

<p>Thanks!</p>
