Creating a blog from scratch with PHP and mysql : How To Start A Blog From Scratch

3 min read

 

Tutorial table of contents

  • Part 1 - question and answers
  • Part 2 - How To Start A Blog From Scratch
  • Part 3 Example blog writing (Insurance company  Blog)
  • Part 4 Example Framework to Use

 

Question : I am building a blog from scratch on my own domain. I know the basics of HTML and CSS. What is the way to go forward?

 

Answer:

I would advise you to spend time learning javascript with jQuery first. It's probably the easiest way to get started with javascript and when you make a website you'll spend 75% of your time writing javascript. 

The reasons for learning javascript are many, but I'll focus on the main 2 that you need:

1 - manipulating HTML and CSS - You'll want to build a website that responds to what your users do, but furthermore, in order to submit a blog post without sending your user (or you if this is purely personal) to some backend script page you'll need to get the the text and other relevant information stored in variables.

How might one do that? With javascript:

var blogPost = document.getElementById('htmlIdOfTextSubmitArea').value;

2 - Sending data to the server, and gettinga response without reloading the page (ajax). This is an absolute must for a web developer and as consumers of content on the web, we expect that the page brings us data without reloading. Look into jQuery's $.ajax() method for a good starting point

How To Start A Blog From Scratch

1. Start With The Planning Stage
2. Select A Great Domain Name
3. Settle On A Hosting Company
4. Select Your Blogging Platform
5. Start Creating Fresh Content

 

Example blog writing (Insurance company  Blog)

What should I write about on an insurance blog?

Never, ever write about insurance products. For one thing, it seems like advertising. For another, it’s against the rules. But you can write about everything else on your insurance blog. Remember the Fortune 500 insurance company I previously mentioned? Its agents and marketing department write about things that insurance might affect — without ever discussing insurance products themselves.

Most of your customers probably have families so write about back-to-school topics in August. Share information on your community’s various events. (One agent used to post the week’s school lunch menus on his Facebook page.) Write about weddings in the spring, heading to college in the fall, driving cars in the winter and teenagers learning to drive.

Your customers own businesses and have jobs so write about small business financing, business networking, disaster preparedness and redundancies, family vacations and family budgeting tips.

They rent or own homes so write about house fire prevention, accident prevention, natural disaster preparedness, lawn maintenance and gardening tips.

The point is, your insurance blog is where you’ll prove your value to them. This is where you’ll show they can trust you. And this is where you’ll demonstrate that you’re the expert they need to turn to when they want to protect their families, their businesses and their homes

 

Example Framework to Use in web developement(Blog)

laravel download link

Laravel - The PHP Framework For Web Artisans download from Github 

GitHub - laravel/laravel: A PHP framework for web artisans

https://github.com/laravel/larave

Server Requirements

The Laravel framework has a few system requirements. Of course, all of these requirements are satisfied by the Laravel Homestead virtual machine, so it's highly recommended that you use Homestead as your local Laravel development environment.

However, if you are not using Homestead, you will need to make sure your server meets the following requirements:

  • PHP >= 7.0.0
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
 

Installing Laravel

Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.

Via Laravel Installer

First, download the Laravel installer using Composer:

composer global require "laravel/installer"

laravel framework tutorial

laravel latest version

laravel example

learn laravel

laravel wiki

how to install laravel

laravel vs symfony

 

creating a blog from scratch html

how to code a blog in html

build a blog for free

creating a blog from scratch with php

create a blog from scratch php mysql

code your own blog

how to write a blog for college

how to create a blog using html and css

Total Execution Time content: 0.00027211507161458 Mins Total Execution Time social : 0.0000 Mins

Read Next

Total Execution Time red next: 0.0000 Mins

Search Now






Categories