This project is a streaming website developed using PHP, HTML, CSS, and JavaScript. Users can sign up on the site to preview content, watch trailers, and view content in full-screen mode. Additionally, the PayPal SDK is integrated to allow users to make payments.
-
User login and logout: Users can sign in and sign out of the website. User sessions are managed using PHP session management.
-
Trailer watching: Users can watch trailers for the content. Trailers are displayed using HTML5 video elements on the site.
-
Content preview: Users can preview the content. The preview screen is designed using HTML and CSS to match the site's layout.
-
Full-screen content viewing: Users can watch content in full-screen mode. Full-screen mode is implemented using JavaScript.
-
PayPal integration: Users can make payments using the PayPal SDK. The PayPal SDK is integrated to handle secure payment transactions and offer various payment options to users.
-
Use of AJAX: AJAX enables background data exchange with the server without refreshing the web page. In this project, AJAX is used for dynamic content loading and data updates.
-
Clone this project:
git clone https://github.com/aydemir89/newWeb.git
-
Run the project folder on your web server. For example, if you are using XAMPP, place the project in the "htdocs" folder.
-
Start MySQL in the XAMPP control panel.
-
Create a database in MySQL and update the necessary database connection details in the
config.php
file. The connection details should be set according to the default XAMPP settings. -
Create a PayPal account for PayPal SDK integration and set the required credentials in the
paypal.php
file. -
Use the
database.sql
file in the project's root directory to create the database tables. -
Open the project in your browser:
http://localhost/project-name
-
Sign up or log in on the homepage.
-
Preview the content and watch trailers.
-
Click the "Fullscreen" button to watch content in full-screen mode.
-
Click the "Make Payment" button to proceed with the PayPal payment process.
-
Click the "Log Out" button to sign out.
If you would like to contribute to this project, feel free to submit a pull request. Constructive feedback and improvements are always welcome.
This project is licensed under the MIT License.