New answers tagged wp-config
(s)FTP into your site, or use a file manager provided by your host, and undo what you did. Then, if you were editing PHP with the built in editor as I suspect, don't ever do that again-- ever. It is like working on an airplane while it is in the air. Create a local copy of your site and work locally. Upload to the host when you know the code works. If you ...
You can make your script a part of your WordPress post, just use the $wpdb object provided by the WordPress itself. The $wpdb object already has the database connection established and you can use it to perform any database operation: insert, update, query etc... Thisi s preferrable method for doing you DB stuff inside WordPress as you do not have to open ...
Is it possible to give drop-ins in their own subdirectory of wp-content instead? No, it is not possible without editing the core WordPress code.
I'm in a similar process and so far the redirects work fine for me. Maybe have a look at the following issue Changing subdir multisite install to subdir core directory structure and see how they resolved it.
It looks like the problem was the db table prefix. My local config file had the wrong table prefix and once that was changed, everything was where it should be.
My advice is to not do long running bulk-operations over a web-connection in the first place. PHP works just fine from the command line. Write your one-time script to do whatever it is that you need it to do. If you need access to WordPress functions in that process, then include the wp-load.php file at the top of the script. Then, go to a shell prompt on ...
This is not quite trivial, because natively WP is engineered to completely ignore requests to existing files. So WP doesn't pay attention to files and .htaccess doesn't have access to WP's logged in information. If you look for prior art (in plugins for selling digital files for example) this isn't easily (at all?) doable with direct links. Typically ...
Top 50 recent answers are included