Deleteing files in the root dir of my dedicated server with PHP -
There is an Apache dedicated server with my lost websites.
I also have the Red5 installation server.
How do I want to know that file functions - especially unlink () - have to be displayed on files placed in RED 5 directories in the root server direct.
I can go with files:
copy (". $ StrFilename, $ strDestination);
but
unlink (
... will not work ...
Any thoughts that I am doing wrong?
Thanks. < /p>
You will have to check the permissions of the file you want to delete as Apache (hopefully) root Should not run and therefore can not remove any files that do not have permission for this.
Come You should be careful about security by allowing an uncontrolled variable to copy () or unlink () at the end of the call, possibly allowing the user to access your entire file system. Take a look.
Comments
Post a Comment