Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

image upload


chilldiscounters

Recommended Posts

Posted

all was fine and i had my server changed and now i am getting this error when i try upload a pic for an entry

 

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home2/chilldic/public_html/comm/images/ac55.jpg) is not within the allowed path(s): (/home/chilldic/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/chilldic/public_html/comm/admin/includes/classes/upload.php on line 91

 

somene point me in a direction

 

 

global $messageStack;

 

if (substr($this->destination, -1) != '/') $this->destination .= '/';

 

line 91---> if (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) {

chmod($this->destination . $this->filename, $this->permissions);

 

if ($this->message_location == 'direct') {

$messageStack->add(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');

 

Thanks

Posted
all was fine and i had my server changed and now i am getting this error when i try upload a pic for an entry

 

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home2/chilldic/public_html/comm/images/ac55.jpg) is not within the allowed path(s): (/home/chilldic/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/chilldic/public_html/comm/admin/includes/classes/upload.php on line 91

 

somene point me in a direction

global $messageStack;

 

if (substr($this->destination, -1) != '/') $this->destination .= '/';

 

line 91---> if (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) {

chmod($this->destination . $this->filename, $this->permissions);

 

if ($this->message_location == 'direct') {

$messageStack->add(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');

 

Thanks

 

 

 

 

aww someone please help me

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...