Choosing Your Domain Name

Technically speaking, the first thing you must do to build a website is to find a unique name for your site and register the name so that no one else can use it. This name is called a ‘Domain Name’. The ‘Domain Name’ is what others will use to find your website. It’s what they will type in their browser address bar when they want to access your website. Parts of a … [Read more...]

URL Shortener with .htaccess

On one of my sites I wanted to allow my users to enter a short URL to go to a page with a longer URL. For example, I wanted them to type a short url like this: instead of a long url like this: To do this, I added my .htaccess file in my public_html folder If I understand how this works correctly, the first … [Read more...]

Building Dynamic Subdomains

I've worked on several sites lately where my client wanted each of their website members to have their own subdomain. Typically, when you set up a subdomain it takes up to 72 hours for the DNS to propagate and start working. I've been trying to find a way to allow subdomains to start working right away somehow in my code. Through trial and error I figured it out. If … [Read more...]

Using PHP’s parse_url Function

This is a PHP function that I wish I had known about earlier, so I thought it was worth a mention for today's Daily Web Tip. parse_url is a function that breaks a url down into it's parts. <?php print_r(parse_url('')) ?> Will give you: Array ( [scheme] => http [host] => [path] => /example/test.php … [Read more...]