amalosoul Posted October 17, 2006 Share Posted October 17, 2006 Can I stop this error from being shown on the browser (even though I know it exists)v[0]=1; echo v[2];The error is Undifined offset.I don't want to fix the problem, I just want it not be shown... Quote Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/ Share on other sites More sharing options...
ToonMariner Posted October 17, 2006 Share Posted October 17, 2006 use v[0]=1;@ echo v[2]; Quote Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109938 Share on other sites More sharing options...
amalosoul Posted October 17, 2006 Author Share Posted October 17, 2006 I get another error :parse error unexpected T_ECHO! Quote Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109939 Share on other sites More sharing options...
HuggieBear Posted October 17, 2006 Share Posted October 17, 2006 Try changing the error reporting level...[code]<?phperror_reporting(E_ERROR);$v[0]=1;echo $v[2];?>[/code]RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109945 Share on other sites More sharing options...
amalosoul Posted October 17, 2006 Author Share Posted October 17, 2006 Thank you very much! This worked:)! Quote Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-110146 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.