chilldiscounters Posted February 18, 2006 Posted February 18, 2006 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
chilldiscounters Posted February 20, 2006 Author Posted February 20, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.