I have a index.php file. In my root folder, there are approximately 200 folders. I want to add index.php file to all 200 folder. Instead of copy-paste, is there a quick way to add it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, like all the other people have already said, there is probably something wrong in your design. If you want to make sure people can’t access it, just use Apache to do that, not PHP. If you still feel the need to add an index.php file to every single directory, here’s how: