HF RL Explorer

Task: Determine PHP Script Execution Context (CLI vs HTTP)

Task: Determine PHP Script Execution Context (CLI vs HTTP): a task in Terminal-Lego-15k (Harbor dataset). Create a PHP script that can reliably determine whether it is being executed from the command line (CLI) or via HTTP (web server). This is a common requirement when a script needs to format…

Part of PrimeIntellect/Terminal-Lego-15k.