Shorten Setup Tutorial

Step 1: Create a Database

Start by creating a database in your server's database management system. Make sure to set up the required tables and fields.

Step 2: Upload the Template to the Database

Import the provided SQL file into your newly created database. This will populate the database with the necessary tables and initial data.

Step 3: Upload Files to Your Server
  1. Upload all the provided files to your server using an FTP client or file manager.
  2. Extract the files into the desired directory.
Step 4: Edit Connection Settings
  1. Navigate to the connection/connection.php file.
  2. Replace the placeholder values with your database credentials:
  3. host: "YOUR_HOST"
    database: "YOUR_DATABASE"
    username: "YOUR_USERNAME"
    password: "YOUR_PASSWORD"
Step 5: Configure the Shortened URL
  1. Open the shorten.php and shorendash.php files.
  2. Locate the following line of code:
  3. header("Location: index.php?shortened_url=https://examples.distarpos.com/shortener/{$short_id}");
  4. Replace the placeholder URL with your domain, for example:
  5. header("Location: index.php?shortened_url=https://yourdomain.com/{$short_id}");
Step 6: Set Up PayPal Credentials
  1. Go to the PayPal Developer Dashboard.
  2. Log in and create an application to retrieve your sandbox credentials.
  3. Edit the connection/connection.php file to include your PayPal credentials.