PHP shell_exec not operating as expected with sqlite3
I am trying to use php shell_exec() to use sqlite3 to _create_ a new sqlite db file. If I do: sqlite3 dB.sqlite .schema on the CLI, it will create a file called dB.sqlite on the disk filesystem, no output on the CLI. If I exec this same command with PHP using backticks or shell_exec() I get no output returned, but no file created. Why? And how can I make php do this?