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 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 { .. } 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 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
Archived
This topic is now archived and is closed to further replies.