Is there any way to find if mysql server is in strict mode or not from PHP? I need to find out this at runtime(in installation script), so I can inform user if his system satisfy script requirements.
SELECT @@sql_mode; will give what you want.
SELECT @@sql_mode;