To use this function you need to give your server user sys.spOACreate permissions.   Code: — ============================================= — Author: Bruno Figueiredo — Description: Returns the file information — ============================================= CREATE FUNCTION fn_getfiledetails ( @Filename sysname ) /* How to use: select * from fn_getfiledetails(‘c:\file.ext’) */ RETURNS @filedetails TABLE ( [Path] VARCHAR(100), [ShortPath] VARCHAR(100), [Type] VARCHAR(100), ..

Read more

$file_url = ‘https://www.airtistic.net/wp-content/uploads/2019/01/logo_main-2.png’; function getRemoteFilesize($file_url, $formatSize = true) {     $head = array_change_key_case(get_headers($file_url, 1));     // content-length of download (in bytes), read from Content-Length: field     $clen = isset($head[‘content-length’]) ? $head[‘content-length’] : 0;     // cannot retrieve file size, return “-1”     if (!$clen) {         return –1;     }     if (!$formatSize) {         return $clen; // return size in bytes     }     $size ..

Read more

CommandCam is a simple and easy to use command line webcam image grabber for Windows. It captures a single image from a webcam and stores it in a bitmap file. CommandCam is ideal for use in batch files and other situations where you want a very simple way to automate image capture. CommandCam uses Microsoft’s DirectShow API to access webcams, so it should work with most USB ..

Read more

The easiest way is to create a function to get the HASH with a simple online request. The script to see the HASH in the browser (PHP): <?php function get_hash($address) { function x509_fingerprint($pem,$hash=’sha1′) { $hash = in_array($hash,array(‘sha1′,’md5′,’sha256’)) ? $hash: ‘sha1’; $pem = preg_replace(‘/\-+BEGIN CERTIFICATE\-+/’,”,$pem); $pem = preg_replace(‘/\-+END CERTIFICATE\-+/’,”,$pem); $pem = str_replace( array(“\n”,”\r”), ”, trim($pem)); return ..

Read more