dadamssg87 Posted May 31, 2011 Share Posted May 31, 2011 Can you set php to header("Location: http://www.yoursiteshomepage.com"); if you encounter a php error or notice? I encountered one just now. i have no idea what i did and didn't fix or alter anything but i can't seem to recreate it to figure out what happenned. Just thinking about when i make my site live. Quote Link to comment https://forums.phpfreaks.com/topic/238035-can-you-redirect-if-you-get-a-notice-or-error/ Share on other sites More sharing options...
requinix Posted May 31, 2011 Share Posted May 31, 2011 Fatal errors, I don't think so. Warnings sure. But I think all you need to do is hide error messages on your site; change the display_errors setting in your php.ini and restart the web server. Quote Link to comment https://forums.phpfreaks.com/topic/238035-can-you-redirect-if-you-get-a-notice-or-error/#findComment-1223207 Share on other sites More sharing options...
dadamssg87 Posted May 31, 2011 Author Share Posted May 31, 2011 thank ya sir Quote Link to comment https://forums.phpfreaks.com/topic/238035-can-you-redirect-if-you-get-a-notice-or-error/#findComment-1223209 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.