├── Webserver Site.txt ├── server1.zip ├── server2.zip ├── WebServerSQL.txt └── README.md /Webserver Site.txt: -------------------------------------------------------------------------------- 1 | https://www.000webhost.com/ 2 | 3 | 4 | -------------------------------------------------------------------------------- /server1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PMTDVA/PHP-Web-Server/HEAD/server1.zip -------------------------------------------------------------------------------- /server2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PMTDVA/PHP-Web-Server/HEAD/server2.zip -------------------------------------------------------------------------------- /WebServerSQL.txt: -------------------------------------------------------------------------------- 1 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 2 | SET AUTOCOMMIT = 0; 3 | START TRANSACTION; 4 | SET time_zone = "+00:00"; 5 | 6 | CREATE TABLE `tokens` ( 7 | `Username` varchar(20) NOT NULL, 8 | `Password` varchar(8) NOT NULL, 9 | `StartDate` timestamp NULL DEFAULT NULL, 10 | `EndDate` timestamp NULL DEFAULT NULL, 11 | `UID` varchar(60) DEFAULT NULL, 12 | `Expiry` int(6) NOT NULL 13 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 14 | 15 | INSERT INTO `tokens` (`Username`, `Password`, `StartDate`, `EndDate`, `UID`, `Expiry`) VALUES 16 | ('DVA', '1234', NULL, NULL, NULL, 1); 17 | 18 | ALTER TABLE `tokens` 19 | ADD UNIQUE KEY `Username` (`Username`,`Password`); 20 | COMMIT; 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP-Web-Server 2 | 3 | This is the Web Server that need to create the login system for those projects. 4 | 5 | 1.https://github.com/LGLTeam/Login-Java-Php-Mysql-Android/ 6 | 2.https://github.com/LGLTeam/Android-Login-Form-Java-2 7 | and any other php based login system. 8 | 9 | # Creating the web Server 10 | I have made a video tutorial for that! Check it out! 11 | 12 | Tutorial:- 13 | 14 | # Adding the webserver to the Project 15 | 16 | Add login.php to your server that supports PHP, use 000webhost.com for free webserver. Repo based hosting such as Github does not support PHP 17 | 18 | Change URL on public String sUrl on MainActivity.java file 19 | 20 | # Preview 21 | 22 | Server1 23 | ![Capture](https://user-images.githubusercontent.com/75931958/121114080-bc6a4a80-c830-11eb-99f5-bd0d50647b5e.PNG) 24 | 25 | Server2 26 | ![Capture](https://user-images.githubusercontent.com/75931958/120961873-41dff300-c77c-11eb-96fa-4e4a29ffc772.PNG) 27 | --------------------------------------------------------------------------------