Add dynamic URLs to sitemap with PHP
I searched around a lot for this one but couldn’t come to a simple conclusion, how could i add dynamic urls (domain.com/user=james) to a sitemap easily and on the fly?!…
PHP backend web language
I searched around a lot for this one but couldn’t come to a simple conclusion, how could i add dynamic urls (domain.com/user=james) to a sitemap easily and on the fly?!…
If you ever want to get a profile image/avatar or banner from either a YouTube, Twitter or Steam account Fetchav is for you. Fetchav as another one of my projects…
Thumbget is a simple way to get the thumbnail from a YouTube video. You just need the video url or video id and Thumbget will return the Thumbnail images in…
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…
The PHP foreach loop is the best and easiest way to iterate through an array. Here are some examples of the foreach loop. Basic PHP foreach with echo: $array =…
If you have a date time stamp and want to check it against another date time to check if its older than a certain amount of days here is how…