php do not be able to compare large int and float reliably.
$val1 = 0.2; $val2 = 0.2;
if($val1 < $val2){ echo 'it is true';}
one workaround for equal comparison is to cast the value to string type.
php do not be able to compare large int and float reliably.
$val1 = 0.2; $val2 = 0.2;
if($val1 < $val2){ echo 'it is true';}
one workaround for equal comparison is to cast the value to string type.
I can’t get the ktoolbar running on my debian squeeze. Found a very good makefile from Hexist
$ext = pathinfo($filename, PATHINFO_EXTENSION);
#apt-get install flashplugin-nonfree
should be working. but in my debian testing it isn’t. I have to manually create a symlinks
#ln -s /usr/lib/flashplugin-nonfree/libflashplayer.so /usr/lib/iceweasel/plugins/libflashplayer.so
to make it work.
<ul class="menu">
<li><a href="/"> Home </a></li>
</ul>
to activate the link when user click on li
$('.menu li').click(function(e){
location.href = $(this).find('a').attr('href');
});
Now, user doesn’t have to click on the “Home” to activate the link.
enable query cache (maybe default depends of the server configuration)
SELECT SQL_CACHE SUM(points) FROM account;
turn off mysql query cach
SELECT SQL_NO_CACHE SUM(points) FROM account;
$str = preg_replace('/\s+/', ' ', $str); //" \n\n\n" will end up as " \n"
$str = preg_replace('/\x20+/', ' ', $str); //only space
ajax request will send additional header
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
echo 'ajax';
server configuration php5-cgi, php5-tidy nginx, debian etch.
Tidy configuration tab-size=>0 can trigger this error. Just change the tab-size value to be greater than 0 to fix
tab-size => 1