Take Screenshot from Command Line
To take a screenshot from command line (even from ssh connection) in a system running X server: xwd -out screenshot.xwd -root -display :0.0 More about xwd here. More options here.
To take a screenshot from command line (even from ssh connection) in a system running X server: xwd -out screenshot.xwd -root -display :0.0 More about xwd here. More options here.
To get current datetime (now) with PHP you can use date with any PHP version, or better datetime class with PHP >= 5.2 Various date format expressions are available here.…
PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…
Use the powerful find command with exec parameter to change permissions using chmod. To change permissions to 644 for all files in /path/to, use the following command: find /path/to -type…
A convenient way to pass a single or multidimensional (possible utf-8) array is to serialize it ("convert it to a string") and pass it using a hidden input. After post…