phpmady Posted June 5, 2010 Share Posted June 5, 2010 Hi, I am include(); to include a config file, suppose if a file is not included, then it will be showing a message, your config file is missing. For security reasons, i am thinking not to show this messsage to the user, how to stop this Thanks Quote Link to comment https://forums.phpfreaks.com/topic/203944-stop-displaying-a-warning-message/ Share on other sites More sharing options...
ignace Posted June 5, 2010 Share Posted June 5, 2010 if (file_exists('config/file/path')) { include('config/file/path'); } else { .. } Quote Link to comment https://forums.phpfreaks.com/topic/203944-stop-displaying-a-warning-message/#findComment-1068154 Share on other sites More sharing options...
phpmady Posted June 5, 2010 Author Share Posted June 5, 2010 if (file_exists('config/file/path')) { include('config/file/path'); } else { .. } Thanks i got it Quote Link to comment https://forums.phpfreaks.com/topic/203944-stop-displaying-a-warning-message/#findComment-1068155 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.