Copy the contents to
C:\xampp\htdocs\blog
Go to C:\xampp\php\php.ini
find : [mail function] And
Set The Following
SMTP=smtp.gmail.com
smtp_port=465
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Go to C:\xampp\sendmail\sendmail.ini
Copy Paste the following
[sendmail]
smtp_server=smtp.gmail.com
smtp_port=465
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=your-password
[email protected]
Open your gmail account > settings > Forwarding and POP/IMAP enable IMAP and save
Your SMTP must be set now.
If errors persists try changing smtp_port
to 587
or remove semicolon before
;extension=php_openssl.dll
in php.ini
Try installing the latest version of Xampp
If you are still facing any errors,
Comment the "mailUser"
function and its call in register.php
and
Comment out the commented part
//session_start();
//$_SESSION['uid'] = $id;
//header("Location: index.php");
If you somehow manage to set up your SMTP,
open contact.php
and change $to = [email protected]
.
contact.php
won't work,if you cant set up SMTP.
As of database, Create a database named blog
in PHPmyAdmin
And Import the sql file blog.sql
and you are good to go.
If you didnt set up your SMTP, change active
col in users
table to 1
Authentication : Viewer | Blogger | Admin
Viewer :
- Can view Posts.
- Can view Blogger/Admin Profile.
- Can Contact Admin.
- Search For a particular user.
Blogger :
- All Rights of Viewer +
- Needs to Sign-Up with valid Email-id.
- An Activation link will be send from localhost(if you had your smtp set up)
- Blogger can post a new post.
- Can Comment on any post.
- Can Like/Unlike any post.
- Can Follow/UnFollow other bloggers/admin.
- See All his Followers/Following.
- Receives notification for LIKE/COMMENT on his post.
- Receives notification if anyone follows him/her.
- Receives notification if any user , a blogger follows makes any new post.
Admin :
- All Rights of Blogger +
- Can Delete any post he feels is spam.
- Can edit any post to remove offensive keywords.
- Can add/delete any new/existing category.
- Can make Any existing blogger as admin or remove him as admin.
- Can Delete the account of a blogger.