How to benchmark a linux server
A Benchmark is a test that checks the performance of varying factors and can be compared amongst the like. A server benchmark tests the i/o speed (disk read and write…
A Benchmark is a test that checks the performance of varying factors and can be compared amongst the like. A server benchmark tests the i/o speed (disk read and write…
If you want to spice up your imagettftext use and use custom fonts from dafont here is how to do it: Choose your font from dafont in this example I…
Occasionally i will connect my Macbook to the tv with the Thunderbolt port adapter and a HDMI cable. I ran into this problem the other day when i was using…
To check how long one of your phpscript takes when executing, use the following code. It is a short and compact way to measure php script execution time. $time_start =…
To check if a a steam profile is ingame and if so which game use the following function as a guide: function ingame($steamid) { $data = json_decode(file_get_contents(“https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=YOURAPIKEY&steamids=” . $steamid…
Here are two handy functions to use in getting the games and friend count for a steam profile. To count the games owned amount for a steam profile use: function…
Here is an example of the Steam GetPlayerSummaries api in work with PHP. I have made a function called summary that creates an array with the data so i can call…
To avoid injections and vulnerabilities when doing MYSQL interaction in PHP use PDO and prepared statements. It’s a bit more work but is the safest way to ensure you are…
PHP comparison operators can be confusing for beginners, here is a quick run down and example to help out. Setting variable a to 2 and b to 10 $a =…
PHP functions, a very simple way to prevent repetitive code and save you time. An example of a PHP function: function test($a, $b){ $var = $a + $b; return $var;…