PHP function to delete all files: In the following code, first passing the path of directory which need to delete. And after deleting the sub directories or files use the rmdir function to delete the main directory. Then only you are able to delete the directory. there are some security issues are there so the best way to do this is you first have to delete the data present in the file or the sub files or directories present in it. In PHP if you want to delete the file or directory then keep one thing in mind that you cannot delete the file or directory directly there is a condition on that i.e. How to pass form variables from one page to other page in PHP ?.How to read user or console input in PHP ?.How to create comma separated list from an array in PHP ?.Removing Array Element and Re-Indexing in PHP.How to display logged in user information in PHP ?.How to convert a string into number in PHP?.How to remove the first character of string in PHP?.How to declare a global variable in PHP?.Split a comma delimited string into an array in PHP.How to Encrypt and Decrypt a PHP String ?.How to get parameters from a URL string in PHP?.Best way to initialize empty array in PHP.How to pass JavaScript variables to PHP ?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |