sde, ok, I made a file in /home/vlad called asd and did chmod 777 on it, then I made a script to rm -rf it and when i did exec it didn't work O_O This is going to be along night...
/me looks at php.net and docs for exec, after 10 seconds slaps head and notices these lines:
shell_exec -- Execute command via shell and return complete output as string
system -- Execute an external program and display output
DOH!
/me slaps head.
system("ls");
works
system("ls --color -F");
works (although it is unreadable because it returns characters that only the shell understands, or unless you are addicted to bash

)
but
system("rm -rf /home/vlad/lll");
does not workand I don't know why

.
the user is nobody and I have no idea why they can't rm it. I made the file owned by them and they still can't rm it. I don't know why....
EDIT: I have put a file called /www/htdocs/lll and have chmod 777 it and chown nobody it but still they can't rm -rf it...