Giter Site home page Giter Site logo

simple-php-blog's Introduction

Simple-PHP-Blog

Simple blog system for personal development using procedural PHP and MYSQL.

For educational purposes only.

Setup

Update the connect.php file with your database credentials.
Import the database.sql file.

If installed on a sub-folder, edit the config.php and replace the empty constant with the folder's name.

The pagination results per page can be set on the config.php file.

URL Rewrite

The latest update introduces 'slugs', also known as 'SEO URLs'.
After you update to the latest version, click on the "Generate slugs (SEO URLs)" button on the admin dashboard and slugs will be generated for all existing posts.

The blog posts URL structure is like this: http://localhost/p/4/apple-reveals-apple-watch-series-7

If you use Apache, enable the Apache rewrite module for the .htaccess rewrite rule to work.

If you use NGINX, you can insert something similar to the code below in your NGINX configuration block.

location / {
    rewrite ^p/(.*) view.php?id=$1;
}

Default Admin Login

Username: admin
Password: 12345

There is no way to update the admin password through the dashboard yet.
To change your password, hash your password with PHP's password_hash() function. Then update the database value with the new password hash.

Screenshots

screenshot_01 screenshot_02

simple-php-blog's People

Contributors

philipinho avatar 7s9n avatar ankheur avatar rastating avatar terzinnorbert avatar myckgoncalves avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.