Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 2 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
mo007
Joined: Dec 13, 2005
# Posts: 52
|
Posted: 2006-Mar-27 14:27
Hi everyone,
I have a form that allows users to upload images to our site, this form is located and accessed from https: // www. oursite .com /cp/. The uploaded images now are saved under https: // www. oursite .com /cp/images/, but I’d like to save them under http: // www. oursite .com /images/ instead.
When I change the path where the images should be saved (from https: // www. oursite .com /cp/images/ to http: // www. oursite .com /images/) I get the open_basedir error:
[code][client 70.54.202.188] PHP Warning: copy():open_basedir restriction in effect. File(/var/www/vhosts/oursite.com/httpdocs/images/imagename.jpg) is not within the allowed path(s):
(/var/www/vhosts/oursite.com/httpsdocs:/tmp) in
/var/www/vhosts/oursite.com/httpsdocs/cp/lib/addPhoto.inc
on line #, referer: ... [code]
Does anyone have an idea how to get around this?
Yours.
[ Message was edited by: mo007 03/27/2006 07:14 am ]
|
 |
dudibob
Joined: Oct 13, 2005
# Posts: 1473
|
Posted: 2006-Mar-27 16:02
I don't know coding at all, but could you possibly make a thing to copy files from /cp/images to the file /images?
Forgive me for my niaveness
|
 |
mo007
Joined: Dec 13, 2005
# Posts: 52
|
Posted: 2006-Mar-27 16:33
Thank you dudibob, but that wouldn't be the best solution for us now.
|
 |
Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835
|
Posted: 2006-Mar-29 06:33
PHP gurus here might offer a better solution for this cross site restriction issue. But a Perl routine might circumvent the security issues across the sites in the same physical box.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|