How bilalbutt/php-dos works
PHP DOS is a browser-based DOS-command simulator: a user enters a command, the client submits it asynchronously, PHP dispatches supported commands, and command handlers produce console-style output. The map separates the browser interface, dispatch and command behavior, help content, and shared configuration/helpers. The README documents the limited-command scope; the sampled dispatcher shows handler routing. The client-to-endpoint handoff is implied by the product description and filenames, but its exact request wiring was not excerpted.
Main entry points: ajax_php.php PHP dispatcher · index.php Terminal page · config.php Runtime settings · type.php TYPE command
Components 21
Browser interface
- Terminal page
index.php - AJAX client
js/ajax.js
Command dispatch
- PHP dispatcher
ajax_php.php
Command handlers
- DIR listing
cmds/dir.php - HELP command
cmds/help.php - ABOUT command
cmds/about.php - CD command
cmds/cd.php - CHDIR command
cmds/chdir.php - COLOR command
cmds/color.php - DATE command
cmds/date.php - DEL command
cmds/del.php - MD command
cmds/md.php - REN command
cmds/ren.php - TYPE command
cmds/type.php - TIME command
cmds/time.php - VER command
cmds/ver.php
Configuration and help
- Runtime settings
config.php - App constants
defines.php - Shared helpers
functions.php - Command help text
cmds/help/chdir.php
Other components
- Command user
Connections 26
- Command user → Terminal page: enters command
index.php - Terminal page → AJAX client: loads script
index.php - AJAX client → PHP dispatcher: submits command
- PHP dispatcher → Runtime settings: loads settings
ajax_php.php - PHP dispatcher → App constants: loads constants
ajax_php.php - PHP dispatcher → Shared helpers: loads helpers
ajax_php.php - PHP dispatcher → DIR listing: dispatches DIR
ajax_php.php - PHP dispatcher → HELP command: dispatches HELP
ajax_php.php - PHP dispatcher → ABOUT command: dispatches ABOUT
ajax_php.php - PHP dispatcher → CD command: dispatches CD
ajax_php.php - PHP dispatcher → CHDIR command: dispatches CHDIR
ajax_php.php - PHP dispatcher → COLOR command: dispatches COLOR
ajax_php.php - PHP dispatcher → DATE command: dispatches DATE
ajax_php.php - PHP dispatcher → DEL command: dispatches DEL
ajax_php.php - PHP dispatcher → MD command: dispatches MD
ajax_php.php - PHP dispatcher → REN command: dispatches REN
ajax_php.php - PHP dispatcher → TYPE command: dispatches TYPE
ajax_php.php - PHP dispatcher → TIME command: dispatches TIME
ajax_php.php - PHP dispatcher → VER command: dispatches VER
ajax_php.php - Terminal page → Runtime settings: loads settings
index.php - Terminal page → App constants: loads constants
index.php - Terminal page → Shared helpers: loads helpers
index.php - DIR listing → Runtime settings: reads settings
cmds/dir.php - TYPE command → Runtime settings: reads settings
cmds/type.php - TYPE command → Shared helpers: uses file reader
cmds/type.php - HELP command → Command help text: includes help text
cmds/help.php