This project is a simple clone of Facebook's login interface, designed for educational purposes. It allows users to enter their information, which is processed using a combination of PHP and Python. The information is saved to a text file, and the user is redirected to the official Facebook website upon successful form submission.
- HTML and CSS for the user interface
- PHP for server-side processing
- Python for saving data to a file
- Simple form validation
facebook_clone_project/
├── index.php # Main interface file
├── process.php # Handles form submission
├── save_info.py # Python script to save information
├── server.py # Script to monitor and display saved information
├── info/
│ └── info.txt # File where user data is saved
├── assets/
│ ├── style.css # CSS file for styling
│ └── script.js # JavaScript file for form validation
Here is a screenshot of the project in action:
- PHP installed on the server.
- Python (version 3.x) installed on the server.
- Write permissions for the
info
directory. - A web server (e.g., Apache or Nginx) to serve the project files.
- Clone or download the project.
- Ensure that the
info
directory exists and has write permissions:mkdir -p info chmod -R 777 info
- Place the project files in the server's web directory.
- Start the web server and access the project through your browser.
- Open
index.php
in your browser. - Fill out the form with your name, phone number, and password information.
- Submit the form.
- Upon successful submission:
- Your information will be saved in
info/info.txt
. - You will be redirected to the official Facebook website.
- Your information will be saved in
- This project is for demonstration purposes only. Do not use it in production environments.
- Passwords are stored in plain text, which is not secure. Consider using encryption for real-world applications.
-
If the
info.txt
file is not created or updated, check the following:- Ensure Python is installed and configured correctly.
- Verify the
info
directory has write permissions. - Check the PHP script for errors using server logs.
-
Test the Python script manually:
python3 save_info.py "Test Name" "1234567890" "oldpass" "newpass"
This project is licensed under the MIT License. Feel free to use and modify it for educational purposes.