سؤال

I am in a peculiar problem with php error. I set error_reporting = E_ALL , display_errors = On and display_startup_errors = On in php.ini file . I get error for only once. That means I have a error in my script, if I execute the script through browser it shows the error normally. But If I refresh the page, the error disappears.

How can I get rid of this situtation ??

Thanks

Foysal

هل كانت مفيدة؟

المحلول

You most likely have something you are setting in the SESSION scope that isn't present on first load, and is each subsequent load. We need more detail to be sure. Can you show your code?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top