I am fan of movie The Social Network. The movie was too good and gave a brief history of Facebook. Those who watched that movie, know that movie was too good and if you did not watch this movie yet, then i recommend you to watch it please. what about this post is.We watched in that how mark zuckerberg created HOT or NOT  website in just few hours while he was drunk also. in this post we will do exact like that.

you can search on internet about how to create a website like HOT or NOT (facemash). There are various websites but all of them use same Scripts. Original Scripts was given by Denmark anders . in this post i will show you how to use that scripts to create your own website like HOT or NOT.

Just follow all steps.

STEP : 1

download scripts from here. these are some codes which you will need to create a website like facemash. these are

  • index.php
  • functions.php
  • mysql.php
  • rate.php
  • install_images.php

STEP : 2

Now choose a free webhost to run your  website. as always i recommend you to choose 000webhost.com for its easy interface.

  • be careful while choosing domain name. try  this type domain name like  “your college name hotchicks.com “


STEP : 3

  • Creat a database for your website. click on mysql button on your webhost dashboard

create database


  • now configure your database settings

configure database

  • check information about your database

database info


STEP : 4

  • Now you have to configure downloaded script.
  • open script mysql.php on notepad and edit your database name, host and password setting

configure mysql script

  • and  save the script.

STEP : 5

  • Upload these files to your webhost account.
  • login into file manager and go into directory public.html
  • upload all  the scripts here one by one

file manager


STEP : 6

  • make a new folder named as “images” in public.html directory
  • upload all your images to this folder.
  • you can upload all images at once using a zip file.

STEP : 5

  • Now login into php my admin and execute this mysql code.
 `battle_id` bigint(20) unsigned NOT NULL auto_increment,
 `winner` bigint(20) unsigned NOT NULL,
 `loser` bigint(20) unsigned NOT NULL,
 PRIMARY KEY (`battle_id`),
 KEY `winner` (`winner`)
 `image_id` bigint(20) unsigned NOT NULL auto_increment,
 `filename` varchar(255) NOT NULL,
 `score` int(10) unsigned NOT NULL default '1500',
 `wins` int(10) unsigned NOT NULL default '0',
 `losses` int(10) unsigned NOT NULL default '0',
 PRIMARY KEY (`image_id`)

congrats you made facemash in just half an hour while mark zuckerberg took 4 hrs to make facemash
errors are welcome through comments.


Rajendra Choudhary

Rajendra is a Cyber Security Analyst, Developer & Professional Blogger. His free time is spent on Blogging, Wordpress, Creating Videos for Youtube Channel to share his knowledge with rest of us

This Post Has 24 Comments

  1. bill

    Whenever I go to login to phpMyAdmin it says that there is an error, I have tried change my password and username, but it continues to show a red error message above my login

  2. bill

    nevermind i fixed it

    1. Tanish

      How you fixed it

  3. mudit

    i have created bpitmash.hol.es and there are error like

    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u639123388/public_html/mysql.php on line 10
    Warning: Invalid argument supplied for foreach() in /home/u639123388/public_html/index.php on line 89

    1. Hello mudit, you are trying it on localhost. Upload files to a web host, it will work

    2. nunez Andy

      mudit i have created my facemash the name is facemashkestwo.hol.es but the images not showing in the home screen,pls help mee

  4. Roi

    Can You Tell Me, How Others Will Check Or The Host Will Check The Results?

      1. Tanish

        How to open webhost account.

      2. Roi

        How To Check The Results?

          1. Roi

            How Many Votes Someone Got??

  5. Tanish

    Whenever I try to open file manager it says:
    An error has occured
    Unable to login to FTP server socialfacemash.netai.net with username a4264051.

    Are you sure your username and password are correct? Please contact your ISP helpdesk or system administrator for help.

    1. You should move on to 5gbfree.com, 000webhost don’t working now a days properly

    2. 000webhost is not working now a days, please try other web host. Go to 5gbfree.com

  6. Sailesh Kandel

    hlo admin if u have time ..plz i wnat to talk wit you

  7. SRD

    Script for checking pols result.

  8. akhand yadav

    There is some problem with my facemash on kvpysec.000webhostapp.com . the varaible images[] isnt defined pls help me

  9. Atharava Joshi

    Why I’m getting #1044 error access denied error while executing mysql code? Plz reply

  10. Anime TV

    can somebody please upload a snapshot of the location of my SQL icon on 000webhost?

  11. Rudra Ghodke

    i also got same error

  12. harish

    hey, i’m having this error
    Notice: Undefined variable: images

  13. Prathit

    I’m getting error in the website as follows:
    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/ssd2/502/12202502/public_html/mysql.php:10 Stack trace: #0 /storage/ssd2/502/12202502/public_html/index.php(18): include() #1 {main} thrown in /storage/ssd2/502/12202502/public_html/mysql.php on line 10
    how do i fix this issue

Leave a Reply or Query