HTML inside a PHP file
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…
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…
Whilst storing data in a json file would not be preferred over using a MYSQL database here is how to do it with a quick example and then a more…