Reputation: 221
I mean to say that I have installed WordPress on a domain. Its root directory now contains files like: .htaccess
, wp-signup.php
, wp-settings.php
etc.
The wp-content
folder contains other information like the theme, plugins etc.
If I had not installed WordPress, I could upload a file like random-names.php
inside the root directory and simply access it inside the browser.
Is there a safe way for me to do the same thing with WordPress installed?
The file random-names.php
has nothing to do with WordPress. It just generates random names in vanilla PHP.
I hope that I made the question clear. Let me know if I need to explain anything.
Thanks.
Upvotes: 0
Views: 668
Reputation: 109
You can still drop the random-names.php
file in the root directory of the server, or in your theme directory. It won't harm WordPress in any way since WordPress doesn't know about it.
Upvotes: 1
Reputation: 4045
Yes you can, you only need to use the exact url to the file
For example: http://example.com/random-names.php
will call the file even if WordPress is in the same folder.
Upvotes: 1