This Is A Simple Blog Built With PHP/MYSQL. - GitHub

Skip to content Dismiss alert {{ message }} / Simple-PHP-Blog Public
  • Notifications You must be signed in to change notification settings
  • Fork 45
  • Star 92
  • Code
  • Issues 3
  • Pull requests 2
  • Actions
  • Projects
  • Security
  • Insights
Additional navigation options  masterBranchesTagsGo to fileCode

Folders and files

NameNameLast commit messageLast commit date

Latest commit

 

History

124 Commits
.gitignore.gitignore  
.htaccess.htaccess  
LICENSELICENSE  
README.mdREADME.md  
_config.yml_config.yml  
admin.phpadmin.php  
cat.phpcat.php  
categories.phpcategories.php  
config.phpconfig.php  
connect.phpconnect.php  
database.sqldatabase.sql  
del.phpdel.php  
edit.phpedit.php  
footer.phpfooter.php  
functions.phpfunctions.php  
generate_slugs.phpgenerate_slugs.php  
header.phpheader.php  
index.phpindex.php  
login.phplogin.php  
logout.phplogout.php  
new.phpnew.php  
search.phpsearch.php  
security.phpsecurity.php  
view.phpview.php  
View all files

Repository files navigation

  • README
  • MIT license
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

About

This is a simple blog built with PHP/MYSQL.

Topics

mysql blog php php-blog

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

92 stars

Watchers

5 watching

Forks

45 forks Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

  • PHP 100.0%
You can’t perform that action at this time.

Từ khóa » Blog Php Github