How to do a vanity url with PHP and htaccess
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…
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…
This is something i had trouble with at first. I wanted to select the highest number (user_id) add 1 onto it (+1) and then insert it back into the database…
A Cron Job is a scheduled repetitive task, these tasks are set on a time, day or date examples being: Every 20 minutes Every 24 hours from 3am Every 6…
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…
PHP echo, one of the common used PHP operators. Echo is used to output a string. You can combine echo with strings and variables, Here are some examples: $age =…
Fiverr was once a place to get services or small jobs done for $5. Now you can struggle to find something worth that much on the website. Is that an…
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;…