TEAM COACH REGISTRATION Shared-hosting installation Use PHP 8.1 or later with sessions, PDO and pdo_sqlite enabled, and SQLite 3.24 or later. All fonts and QR code generation are included. No Composer, Node, MySQL database or external QR service is required. Install on a DirectAdmin domain 1. In File Manager, open domains / YOUR-DOMAIN. You should see public_html inside this folder. 2. Upload the ZIP here, one level ABOVE public_html, and extract its contents here. If your file manager creates an extra enclosing folder, move the two application folders into the positions shown below. Merge the public_html folder with your existing one. The public files are all under coach-registration. 3. Check these paths: domains/YOUR-DOMAIN/public_html/coach-registration/index.php domains/YOUR-DOMAIN/coach-registration-private/registration.php The private folder must be outside every publicly served folder. Its storage subfolder must be writable by your PHP account. On typical per-account PHP hosting, 0700 works for storage. Use your hosting panel to enable pdo_sqlite if needed. 4. Open https://YOUR-DOMAIN/coach-registration/ and complete a test entry. The page displays the registration number and a printable QR code. In the print dialog, choose Save as PDF to keep a copy. 5. Try the same full name again using the international version of the same mobile number. You should see “already registered.” Your first entry also remains saved, so use a test person's details deliberately. For cPanel or another shared host, put coach-registration inside your domain's document root and coach-registration-private beside that document root. If a subdomain's document root is nested inside another public website, place the private folder in the account's private home directory and update the require path near the top of public index.php to point to its registration.php. How it works - Full name and team name accept English letters A–Z and spaces. Lowercase is converted to capitals, and extra spaces are collapsed. - Choose Coach or Vice Coach. - A UAE mobile number may be written as 050 123 4567, +971 50 123 4567, 00971 50 123 4567 or 971501234567. Supported local prefixes are 050, 052, 054, 055, 056 and 058. The database stores the international format. This checks the number's format; it does not send SMS. - The database enforces one row per normalized full name AND mobile number, even if the title or team changes. A different person can share a family phone. - A QR scan returns the registration number, for example REG-000001. The mobile number and other personal information are excluded. Registration numbers are unique and may have gaps. - The confirmation is available in the submitting browser session. Use Print / Save PDF or take a screenshot before closing it. The registration itself stays in the database. Records and backups The first valid submission creates coach-registration-private/storage/registrations.sqlite. It contains all registrations. Use your hosting backup feature to back up this private folder. If you redeploy the application, keep the existing database and use the same private folder. Never place the database or its backups in public_html. Troubleshooting - A 404 usually means that an extra ZIP folder was created or the public folder was placed under the wrong domain. - “Registration is temporarily unavailable” can mean a missing private folder, disabled pdo_sqlite, unwritable storage, or unavailable PHP sessions. Check the domain's PHP error log and the two paths above. On hosts with open_basedir restrictions, PHP must be permitted to read the private application directory and write its storage folder. - If the form says it expired immediately, enable browser cookies and check session storage in the hosting panel. Bundled components QR encoding: Kazuhiko Arase, qrcode-generator (MIT). License in coach-registration-private/vendor/QR-LICENSE.txt. Barlow SemiBold: the Barlow project (SIL Open Font License). License in coach-registration-private/vendor/Barlow-OFL.txt.