figo2476 Posted January 28, 2008 Share Posted January 28, 2008 I working in /var/www/test/ with kubuntu in test.php: <?php rename('test.txt', 'newtest.txt'); ?> permisson, group, ownership: test.txt 777 www-data www-data newtest.txt 777 www-data www-data error: Access test.php via browser 'rename .... ermission denied' I read that php doesn't have permissions to execute the 'rename'... Any hint? Quote Link to comment https://forums.phpfreaks.com/topic/88127-php-rename-permission-denied/ Share on other sites More sharing options...
toplay Posted January 28, 2008 Share Posted January 28, 2008 If unix platform, try specifying current directory (i.e. './test.txt') but full path is preferred. Check with your web host company. Quote Link to comment https://forums.phpfreaks.com/topic/88127-php-rename-permission-denied/#findComment-450899 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.