Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 2 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

mo007
Joined: Dec 13, 2005
# Posts: 52

View the profile for mo007 Send mo007 a private message

Posted: 2006-Mar-27 14:27
Edit Message Delete Message Reply to this message

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

View the profile for dudibob Send dudibob a private message

Posted: 2006-Mar-27 16:02
Edit Message Delete Message Reply to this message

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 wink



mo007
Joined: Dec 13, 2005
# Posts: 52

View the profile for mo007 Send mo007 a private message

Posted: 2006-Mar-27 16:33
Edit Message Delete Message Reply to this message

Thank you dudibob, but that wouldn't be the best solution for us now.



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-29 06:33
Edit Message Delete Message Reply to this message

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:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. 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

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions