Manipulate (root) Files from (subdomain)
Domain: domain.com Subdomain: sub.domain.com
My HTML page on (subdomain) needs to show image from (root) folder "../../../httpdocs/images/".
User can change that image, so he chose new image and submits the form to开发者_运维知识库 the PHP script on (subdomain).
PHP script on (subdomain) check's the posted image and resizes it and if all ok...
if (imagegif($thenewimage,"../../../httpdocs/images/test.gif",100))
{
header("location: index.php?success=true");
}
then it need's to save it to (root) domain.
how to acomplish that? :(
Thanks!
With copy
you can copy a file.
http://www.php.net/copy
精彩评论