Unicode Character Calculator
Unicode Character Calculator is a tool to convert symbols to HTML/PHP entity, CSS hex value and JavaScript hex value.
Entrepreneur, Blogger, Full Stack Developer, DevOps, Cloud Manager
linux-apache-mysql-php
Unicode Character Calculator is a tool to convert symbols to HTML/PHP entity, CSS hex value and JavaScript hex value.
MP3 Track’s information (title, artist, playtime, filesize, bitrate, genre, composer, artwork image) using getID3 Library HTML5 MP3 Player for Folder How to get MP3 MetaData? Download latest getID3() library from http://getid3.sourceforge.net/ Then download mp3info.zip mp3info Uses: print_r( getMp3Info(“MP3-SONG-URL-OR-FILE.mp3”) ); http://localhost/mp3info/metadata.php?file=Heeriye.mp3&debug=0 http://localhost/mp3info/metadata.php?file=Heeriye.mp3&debug=1 MP3 Codec Info Type: Audio Codec: MPEG Audio layer 1/2/3 (mpga) Channels: Stereo Sample … Read more
wowza-live-cam-secure-expired-token.php // Encrypt original stream URL http://wowza-server:port/stream/playlist.m3u8 $base64ized = encryptDecrypt($secret_key, $streamURL, 0); // Decrypt stream URL $streamURL = encryptDecrypt($secret_key, $base64ized, 1); stream.php // Expire stream URL after time interval & check secure token if (($current – $timestamp)
Simply use chdir() to change the working directory before you exec() Or you can use …. exec(“cd /var/www/html/media; zip -r -9 Media.zip . 2>&1”, $log); exec(“mv /var/www/html/media/Media.zip /var/www/html/Media.zip”); Get zip file size exec(“ls -ls /var/www/html/Media.zip | awk ‘{print $6}’ 2>&1”, $size); $zipsize = implode(” “, $size); Without this solution Length Date Time Name ——– —- … Read more
I was working on Amazon S3 Cloud HTML5 MP3 Player for S3 Bucket security and Expiring Media links. <?php if(!function_exists(‘el_crypto_hmacSHA1’)){ /** * Calculate the HMAC SHA1 hash of a string. * * @param string $key The key to hash against * @param string $data The data to hash * @param int $blocksize Optional blocksize * … Read more
If you need to start process in background and get its PID to manage it later using PHP. <?php function runInBackground($command,$log,$priority=0) { if($priority) $PID=shell_exec(“nohup nice -n $priority $command > $log 2>&1 & echo $!”); else $PID=shell_exec(“nohup $command > $log 2>&1 & echo $!”); return($PID); } ?> echo $! will return process ID # Command & … Read more
I am playing with all cloud services these days, so today we will try to setup Apache, PHP, MySQL on HP Cloud. HP Cloud is based on OpenStack Compute Hope you already read our old article “Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud”? In the HP Cloud Console Area you can manage … Read more
Yesterday we have installed basic web server (apache, php, mysql) on Google Compute Engine. Today our target is to install Red5 on Ubuntu server for Google Compute Engine. First we need to check Java version installed on Google Compute Engine $ java -version The program ‘javac’ can be found in the following packages: * default-jdk … Read more
I am so happy to get access for Google Compute Engine Limited Preview 🙂 Google Compute is a service that provides virtual machines on Google infrastructure. Google Compute (virtual machines with distributed computing power) provides some options that enable to configure, deploy, and manage multiple virtual machines in multiple data centers. – Command-line tool called … Read more