Ptirhiik - RPGnet-fr wrote:
You can simply define a constant when doing your obstart(), and avoid to do your session_start() if the constant is not defined (except if the obstart() is not required by the board setting).
On the principle I agree Ptirhiik but despite what anyone can think, I was a REAL newbie in php/HTML in June and I'm still not far away from this starting point now.
In this context, one of my weak spot is precisely my knowledge of how variables works and once again I regret to have to say that I nearly can't do anything of your advise as I really don't know how to "define a constant" that can be available for testing in "functions.php", as I don't know how phpBB does to store session variables without using php session predefined variables...
I've spend once again 15h yesterday only to find a solution for the 2 possible ways.
I know the principle, I'm NOT AT ALL a newbie in computing (I'm the author of a professional software sell to and used by the French Golf league), but I'm a newbie in php. So if it's not detailed advises I just can't use them as usually I already know the general possibilities/principle by myself, and then spend hours and days trying to find how to apply them.
So I've already do many tests around what you said testing $board_config['gzip_compress'] and ob_get_contents() for example (but the contents is always empty as it's deleted in page_tail.php), etc. but with no success.
And I had already thought to use a variable or a constant but I simply don't know how in practice do to let it be available for functions.php.
Moreover the first ob_start() must change something if all the next ones do not cause any error?
So there must have some thing to test in the php status here even without creating a constant, no?
Sorry for all this answer but that's the reality, all I'm able to do
P.S.: if you want to answer in French, here is the same problem in a French forum...