I am trying to enable foreign key constraint of sqlite database from my php script.
I tried :
shell_exec('sqlite ex.db');
shell_exec('PRAGMA foreign_keys = ON');
echo $isEnabled = shell_exec('PRAGMA foreign_keys');
But I am not getting $isEnabled
as 1
. In fact I am not getting anything as output.
Thanks.