copy/move images from domain to subdomain

images php coding issues or problems here.

Moderators: macek, egami, gesf

cnapsys
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Sep 01, 2011 7:31 am

copy/move images from domain to subdomain

Postby cnapsys » Thu Sep 01, 2011 7:41 am

hey all,
I've been struggling for the last few days to come up with a solution for my problem.
I'm trying to set up a fairly complex image uploading system.
However I'm stuck trying to copy/move the uploaded files to a subdomain.
After further digging I realized that I ran into open_basedir restriction.

What are the options, run-arounds open_basedir?

Env: Dedicated server > RHEL with Plesk

for ex paths are:
$path1 = "/var/www/vhosts/domain.com/httpdocs/new/test/test.jpg";
$path2 = "/var/www/vhosts/domain.com/subdomains/img/httpdocs/test/test.jpg";

Any ideas/advice would be greatly appreciated.
Thank you for your time!

c

lokanath7
New php-forum User
New php-forum User
Posts: 139
Joined: Mon Nov 15, 2010 12:11 am

Re: copy/move images from domain to subdomain

Postby lokanath7 » Fri Sep 02, 2011 3:00 am

write in ur file above copy or move statement...

ini_set("open_basedir","On");


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 2 guests