matthew01 Posted June 11, 2006 Share Posted June 11, 2006 Hi Guys,I have got this upload image script, But it has an error, I have Chmoded the folder to 777, The folder I have chmoded to 777 is "companylogos"Here is the errors I getWarning: move_uploaded_file(\directory\stores\images\companylogos\ae4a9edc1338bbf4fc12cbb 4dc6f5f2c.gif): failed to open stream: Permission denied in /var/www/vhosts/matthewscomputerguide.com/httpdocs/directory/CMSAdmin/StoreManagement_DD.php on line 219Warning: move_uploaded_file(): Unable to move '/tmp/phpd679qA' to '\directory\stores\images\companylogos\ae4a9edc1338bbf4fc12cbb4dc6f5f2c.gif' in /var/www/vhosts/matthewscomputerguide.com/httpdocs/directory/CMSAdmin/StoreManagement_DD.php on line 219Warning: rename(): open_basedir restriction in effect. File(/directory/stores/images/companylogos/ae4a9edc1338bbf4fc12cbb4dc6f5f2c.gif) is not within the allowed path(s): (/var/www/vhosts/matthewscomputerguide.com/httpdocs:/tmp) in /var/www/vhosts/matthewscomputerguide.com/httpdocs/directory/CMSAdmin/StoreManagement_DD.php on line 64Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/matthewscomputerguide.com/httpdocs/directory/CMSAdmin/StoreManagement_DD.php:219) in /var/www/vhosts/matthewscomputerguide.com/httpdocs/directory/CMSAdmin/StoreManagement_DD.php on line 74MatthewI now know its path problem as I can't use the absolute paths. I have tried a few different paths but they seem to not work. Could some one give me a hand. ThanksMatthew Quote Link to comment https://forums.phpfreaks.com/topic/11681-php-coding-error-problem/ Share on other sites More sharing options...
wildteen88 Posted June 11, 2006 Share Posted June 11, 2006 By looks of things the folder that you are moving the uploaded file to doesnt have the correct permissions set, that is you are retrieving that error Quote Link to comment https://forums.phpfreaks.com/topic/11681-php-coding-error-problem/#findComment-44228 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.