Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/240606-need-help-with-a-few-errors/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.