开发者

Manipulate (root) Files from (subdomain)

开发者 https://www.devze.com 2023-02-05 23:34 出处:网络
Domain: domain.com Subdomain: sub.domain.com My HTML page on (subdomain) needs to show image from (root) folder \"../../../httpdocs/images/\".

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

0

精彩评论

暂无评论...
验证码 换一张
取 消