How to Make a Blog in Php?

Making a blog in PHP is a very simple process. First, you need to create a web server and install the PHP development environment. Then, you need to create a database and create a new PHP file called “blog.

php.” Finally, you need to create a configuration file called “config.php” and add the following lines:.

$blog = new PhpBlogging(); $blog->name = “My Blog”; $blog->domain = “www.mysite.com”; $blog->allow_comments = true; $blog->publish_date = “Fri, 01 Dec 2009 07:00:00 GMT”; $blog->template = “default”;

Next, you need to create a file called index.html in your blog’s document root and add the following lines:

My Blog

Hello World!

Finally, you need to create a file called config.php and add the following lines:

$blog = new PhpBlogging(); $blog->name = “My Blog”; $blog->domain = “www.mysite.com”; $blog->allow_comments = true; $blog->publish_date = “Fri, 01 Dec 2009 07:00:00 GMT”; $blog->template = “default”; // Change this to your blog’s hostname or IP address if you’re using a hosted blog service like blogger.com //$blog->hostname=”localhost”; // Or if you’re using an anonymous blogging service like nginx://localhost/ blog: //$blog->hostname=”127.0.0.1″; // Note that the username and password fields are optional if using an anonymous blogging service; blogger will set these for you if they’re not provided.

Related Posts