a bad hacker news clone made in php
Go to file
2024-02-23 20:40:00 +00:00
account import files 2024-02-23 20:40:00 +00:00
com.php import files 2024-02-23 20:40:00 +00:00
comments.php import files 2024-02-23 20:40:00 +00:00
config.php import files 2024-02-23 20:40:00 +00:00
database.sql import files 2024-02-23 20:40:00 +00:00
index.php import files 2024-02-23 20:40:00 +00:00
LICENSE Initial commit 2024-02-23 20:16:00 +00:00
README.md import files 2024-02-23 20:40:00 +00:00
sub.php import files 2024-02-23 20:40:00 +00:00
submit.php import files 2024-02-23 20:40:00 +00:00
users.php import files 2024-02-23 20:40:00 +00:00

hacker news clone

a bad hacker news clone made in php

this was created on garbage free hosting so it probably works anywhere you can get php 7.3 and some new version of mysql

(yes it breaks after php 8.0 i dont care to figure out why)

setup

  1. copy the files over to your server
  2. modify config.php to use your database login, base url, and email
  3. import database.sql into your database
  4. go to whatever your base url is set as
  5. profit i think idk

why you shouldn't use this

  • the account system is from some tutorial
  • there's probably some vulnerability that allows code execution
  • comments SUCK!!! they look so awful
  • it uses mysqli instead of something more secure like pdo
  • i think you can post without an account and i forgot to fix that
  • the logout button is always visible even when you log out
  • the navbar buttons are inconsistent