and i just want to get rid of it.... is there a way I can put a code in my php script that will disable showing errors messages ?
In a production environment you should set display_errors to Off and log errors instead, keeping error_reporting at E_ALL (or maybe E_ALL & ~E_NOTICE). On a development environment, which appears to be the case here, you should set display_errors to On and fix any errors, warnings, or notices that you encounter. Of course, error_reporting should be set to E_ALL when testing.