Server setup sanity check on theme changes

It’s possible for themes to create sample content, but as far as I can tell that’s still the exception rather than the norm. It’s more typical to create at least a homepage with some dummy content including images, lists, headings, etc. Then when you switch themes, you’ll still see that content but wrapped in the … Read more

Will denying all ip address except my own create a problem?

To answer your question and for any others that might come along to this thread; Will it be a problem? Denying access from the .htaccess file will block all connections unless permitted, so if you are using plugins that need to execute API calls or similar, you’ll need to whitelist those IPs. So in totality, … Read more

Check WordPress size on disk

Why using a plugin for that? You can set a function to calculate the size of the 2 installations. The size of abc.com will include also the size of the other installation, but then you can subtract the smallest from the largest. $path = ABSPATH; $size = foldersize($path); function folderSize ($dir) { $size = 0; … Read more

Where can I find web hosting reviews? [closed]

I personally wouldn’t bother with any of the hosting review sites. Instead ask friends and peers which services they use and if they are any good. Also checkout the userbase and the community at the host you are considering as they will give you a good indication of whether the host is of good quality … Read more

Test for IP in Array Always Fails on First IP

There are two pieces to this code: 1) Interpreting the list of allowed IPs from a textarea, delimited by newline character, and 2) Checking if a given user’s IP is in the allowed list of IPs. Part 1) Parse list of IPs delimited by newline character, and trim whitespace: $_POST[‘allowed_ips’] = ” 67.6.134.102 97.118.69.236 “; … Read more

Moving a WordPress website from one server to another

Yes you can. Check out this article from the Codex. If you will be using a new domain the chapter is named Changing Your Domain Name and URLs; if you won’t use a new domain name use Keeping Your Domain Name and URLs. Edit: You must use the entire wp-content folder and not only the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)