johnre Posted June 28, 2011 Share Posted June 28, 2011 rename(/home/brian/public_html/files//rartemp,/home/brian/public_html/files//) [<a href='function.rename'>function.rename</a>]: Directory not empty on line 188 in file /home/brian/public_html/index.php shell_exec() has been disabled for security reasons on line 190 in file /home/brian/public_html/index.php rmdir(/home/brian/public_html/files///) [<a href='function.rmdir'>function.rmdir</a>]: Directory not empty on line 196 in file /home/brian/public_html/index.php These are my errors, i cant seem to figure out how to stop them from coming up in my piece of code, can anyone help me out Quote Link to comment https://forums.phpfreaks.com/topic/240606-need-help-with-a-few-errors/ Share on other sites More sharing options...
EdwinPaul Posted June 28, 2011 Share Posted June 28, 2011 It is simple: 1. you can only rename an empty directory http://www.php.net/manual/en/function.rename.php 2. shell_exec() has been disabled for security reasons by your provider. You can't change that. http://php.net/manual/en/function.shell-exec.php 3. you can only remove an empty directory. http://www.php.net/manual/en/function.rmdir.php Quote Link to comment https://forums.phpfreaks.com/topic/240606-need-help-with-a-few-errors/#findComment-1235838 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.