Check if a string represents a valid Date or Time with PHP
PHP DateTime class, available with PHP versions greater than 5.2 is very powerful. As an example, it ts very easy to check if a string represents a valid date or…
PHP DateTime class, available with PHP versions greater than 5.2 is very powerful. As an example, it ts very easy to check if a string represents a valid date or…
How can you create a reference to a DOM element using jquery? In other words, what is the jquery equivalent of document.frm.element_name or document.getElementById("element_id") Someone could say: $("#element_id") Wrong, as…
nano is a popular text editor for Linux/UNIX. In order to display line numbers, edit global configuration file (or user file /home/user/.nanorc) nano /etc/nanorc Go to line 49 (approximately) and…
A simple solution to scan your network is nmap. Avoid to use nmap in external networks, as it could be considered as an "attack". To install nmap in Debian/Ubuntu apt-get…
What is the javascript equivalent of PHP call-user-func? To call a user-defined javascript function, for example DoReload(), you have just to write its name: DoReload(); In case you want to…