Lol what a surprise..
I’ve been pulling my hair why my custom cursor wouldnt work. Turns out, IE (yes, big surprise) takes site url instead of stylesheet as baseurl when it comes to cursors.
I’ve been pulling my hair why my custom cursor wouldnt work. Turns out, IE (yes, big surprise) takes site url instead of stylesheet as baseurl when it comes to cursors.
*facepalm* $_POST is always set, it can only be empty.
Sorry, this entry is only available in English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language. Just use javascript:void(0) instead of # for href You might encounter this error most likely in Firefox Console
is_numeric doesnt check strings for numbers. You need to use preg_match(‘#[0-9]#’,$string)
If you are familiar with WordPress, you should already know that you should almost never have to use get_posts(). Your best bet is to use WP_Query . As good as wp_query is, you should still fine-tune it depending on your needs, it does make a difference. For example, if you just need 1 random post…
Actually, you do not want to open memcached port in your firewall. #ref: http://serverfault.com/questions/530051/memcached-ports-and-csf
Ways to load an array from file into a variable: 1- $var = require ‘myarray.php’; // or include // myarray.php contents return array(“test”,”test2″); 2 – require ‘myarray.php’; // or include // myarray.php contents $var = array(“test”,”test2″); Use $var as you would normally. 3- $var = file_get_contents(‘myarray.php’); // myarray.php contents array(“test”,”test2″);