Fellow php'ers:
Have a quick question that there seems to be several opinions on and no decisively clear answer. I thought I would present it and gather additional input:
In a php program/script interacting with a web user through apache2, is it best to let the logic "drop" out the bottom of the code after presenting its output -OR- to explicitly execute an exit instruction?
In all likely hood web service programs/scripts will be called upon time and time again so the former would seem wise. But I do not know specifically what the system overhead would be and how apache2 handles executables like this.
Opinions, statistics, real life situations, etc., all appreciated in the interest of learning.
Thanks
Have a quick question that there seems to be several opinions on and no decisively clear answer. I thought I would present it and gather additional input:
In a php program/script interacting with a web user through apache2, is it best to let the logic "drop" out the bottom of the code after presenting its output -OR- to explicitly execute an exit instruction?
In all likely hood web service programs/scripts will be called upon time and time again so the former would seem wise. But I do not know specifically what the system overhead would be and how apache2 handles executables like this.
Opinions, statistics, real life situations, etc., all appreciated in the interest of learning.
Thanks