rookie mistake isset($_POST
*facepalm* $_POST is always set, it can only be empty.
*facepalm* $_POST is always set, it can only be empty.
Actually, you do not want to open memcached port in your firewall. #ref: http://serverfault.com/questions/530051/memcached-ports-and-csf
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.
Time and again i fall for this same simple mistake. This may not be intuitive in the context of serialized arrays. If you fetch a serialized array with this method you want $single to be true to actually get an unserialized array back. If you pass in false, or leave it out, you will have…
Just use javascript:void(0) instead of # for href You might encounter this error most likely in Firefox Console
Türkçe veya diğer özel -multibyte- karakterler için malesef PHP str_word_count(), strlen() gibi fonksiyonlarda yanlış sayım veriyor, her özel karakter 2 kelime / karakter sayılıyor. Bunu aşmak için iconv() transliteration da denedim ama kâr etmedi. Araştırmalarımda da tek -garanti- çözümün şüpheli karakterleri replace etmek olduğunu buldum ama her Türkçe karakteri (ve muhtemel diğer yabancı karakterleri) hardcode…
is_numeric doesnt check strings for numbers. You need to use preg_match(‘#[0-9]#’,$string)