Creating an image in PHP
You can do a lot with PHP and creating an image is one of them. You can add text or even other images onto your base image, here is how:…
PHP backend web language
You can do a lot with PHP and creating an image is one of them. You can add text or even other images onto your base image, here is how:…
An easy way to check if a Twitch user is streaming in PHP can be done with the following function and PHP code: $streamer = ‘kyr_sp33dy’;//the streamers username function is_channel_live($channel)…
HTML inside a PHP file is a common occurrence when building web applications, you can easily have a bootstrap page that uses PHP to show data. You can either echo…
A vanity URL is a URL that is simplified or is a cover to what the URL is fetching. On website that you have usernames vanity URL’s are the domian.com/username…
From reading devlopment forums, boards and reddit you see alot of jokes poked at PHP and many people talking it down. My gist was because it was a noob language…
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;…
In PHP if & elseif is something i was always using when in fact a simple switch would have done the job and looked cleaner. Looking at the following Switch…
If you want to randomise a PHP variable the following code is a great example: $vars = [‘Apple’, ‘Orange’, ‘Melon’, ‘Lemon’, ‘Lime’]; $random = $vars[mt_rand(0, count($vars) – 1)]; echo $random;…
PHP GET sends data or a value through the URL, obviously not good or used for passwords but it is good to shape that URL’s page contents. Do note that…