trafficelf:development
Table of Contents
Development Environment
Traffic Elf is designed to run on a standard LAMP-style stack.
Requirements
- Apache or Nginx
- PHP 8.x
- MySQL 8.x
- Modern browser (Chrome, Firefox)
Recommended Folder Structure
/trafficelf
/api
clients.php
campaigns.php
/css
app.css
/js
app.js
index.html
Database Connection (PHP)
Example reusable database connection file.
<?php $host = "localhost"; $db = "trafficelf"; $user = "tedbeditor"; $pass = "YOUR_PASSWORD"; $charset = "utf8mb4"; $dsn = "mysql:host=$host;dbname=$db;charset=$charset"; $options = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ]; $pdo = new PDO($dsn, $user, $pass, $options);
trafficelf/development.txt · Last modified: by freedomotter
