Category: php
In wordpress headers, you probably notice the CSS and JS static assets are referenced like this: https://justyy.com/wp-content/themes/twentytwelve/style.css?ver=4.4.2 The query string ?ver= is used to tell browsers to do a …
WordPress provides an API is_user_logged_in() to check if any user is loggin, but unfortunately, it is not directly available when you write plugins e.g. Plugins are loaded before pluggable.php …
@Jordan Hall tweets true exception handlers in PHP an Javascript. Javascript Exception Handler try { // something } catch (e) { window.location.href = "http://stackoverflow.com/search?q= + " + e.message; } …
The wordpress folders and files should be set the correct permissions. If you have multiple blogs on the same server, you can use the following script to ensure the …
As you might know, the storage (HDD or SSD) on VPS server are expensive. That is why the VPS may seem overpricing the HDD/SSD storage e.g. 50GB costs like …