In where shall I use isset() and !empty()

isset vs. !empty FTA: “isset() checks if a variable has a value including (False, 0 or empty string), but not NULL. Returns TRUE if var exists; FALSE otherwise. On the other hand the empty() function checks if the variable has an empty value empty string, 0, NULL or False. Returns FALSE if var has a … Read more

WordPress visual composer not loading

try this step You can upgrade Visual Composer by performing following steps: Please make sure main theme is activated while performing other steps Go to Plugins page in your WordPress Dashboard, locate Visual Composer in the list, deactivate it and delete it You will see message that required plugin is missing at the top of … Read more

How to get URL of current page in PHP

For more details on what info is available in the $_SERVER array, see the PHP manual page for it. If you also need the query string (the bit after the ? in a URL), that part is in this variable:

Get JSON object from URL

For this to work, file_get_contents requires that allow_url_fopen is enabled. This can be done at runtime by including: You can also use curl to get the url. To use curl, you can use the example found here: