Check if a process is running on Linux with PHP
Check if a process is running on a Linux system such as Ubuntu by using PHP. This is done by using pgrep and checking if its response is empty. pgrep…
Check if a process is running on a Linux system such as Ubuntu by using PHP. This is done by using pgrep and checking if its response is empty. pgrep…
A simple system that automatically refreshes an expired OAuth access token if a call is attempted but the token is expired. This post is a continuation of Twitch authentication with…
From May 11th 2020 Twitch has implemented OAuth to its helix API version, now instead of just needing the client id key to make API calls you also need to…
Getting a file’s modified time with PHP is done by using the filemtime() function, this returns the files last modified time in Unix format. An example below which also checks…
Creating a PHP file by using PHP, the concept is the same as creating a text file except you have to enclose the code you want to be in your…
Creating a video from an image and audio file with FFmpeg can be achieved in many different ways, but let’s keep it super simple: ffmpeg -loop -1 -y -i theimage.jpg…
Stopping or cancelling a setInterval call in Javascript involves using clearInterval. You must however use clearInterval on a variable that is assigned to the setInterval you want stopped. setInterval calls…
Displaying a progress bar for a youtube-dl download by using PHP and some AJAX setinterval. I have covered AJAX setinterval before with an FFmpeg progress bar and a general continuous…
Ubuntu comes packaged with a very easy to use firewall tool called UFW. This is literally meaning uncomplicated firewall for Ubuntu. The UFW syntax is a short and sweet option…
Calling a PHP page and showing its output every second with AJAX. For ease of use, this requires Jquery. This example will show the current datetime as per the PHP…