var: Declare a variable, value initialization optional. Can re-declared and re-initialize. let: Declare a local variable with block scope, value initialization optional. Can re-initialize but…
Step 1: find memcached settings file: You see location: /etc/sysconfig/memcached Then view content of this file It means current amount of memory Memcached uses is…
Step 1: install php-gmp Now you can see file gmp.so and 20-gmp.ini Step 2 (optinal if not exists file /etc/php.d/20-gmp.ini): restart PHP-FPM now you can…
In almost all case, we can get real client IP address with $_SERVER[“HTTP_CF_CONNECTING_IP”] and $_SERVER[“REMOTE_ADDR”] But in some special cases we will get proxy IP…
The child component exposes an EventEmitter property with which it emits events when something happens. The parent binds to that event property and reacts to…
We can detect and act upon changes to input property values with the ngOnChanges() method of the OnChanges interface. Child component: src/app/child/child.component.html src/app/child/child.component.css src/app/child/child.component.ts Parent…