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.
CREATE TABLE IF NOT EXISTS `battles` (
 `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`)
 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
 
 
 CREATE TABLE IF NOT EXISTS `images` (
 `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`)
 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

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 22 Comments

  1. 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. nevermind i fixed it

    1. How you fixed it

  3. 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
    and
    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. 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. Can You Tell Me, How Others Will Check Or The Host Will Check The Results?

      1. How to open webhost account.

      2. How To Check The Results?

          1. How Many Votes Someone Got??

  5. 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. hlo admin if u have time ..plz i wnat to talk wit you

  7. Script for checking pols result.

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

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

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

  11. i also got same error

Leave a Reply or Query

Close Menu