PHP Classes

I think it is big overhead to find out if php is running in w...

Recommend this page to a friend!

      PHP Web or Cli Detect  >  All threads  >  I think it is big overhead to find...  >  (Un) Subscribe thread alerts  
Subject:I think it is big overhead to find...
Summary:Package rating comment
Messages:2
Author:Mat Jung
Date:2023-04-15 17:03:38
 

Mat Jung rated this package as follows:

Utility: Not sure
Consistency: Sufficient
Documentation: Sufficient
Examples: Sufficient

  1. I think it is big overhead to find...   Reply   Report abuse  
Picture of Mat Jung Mat Jung - 2023-04-15 17:03:38
I think it is big overhead to find out if php is running in web or cli environment.

  2. Re: I think it is big overhead to find...   Reply   Report abuse  
Picture of Francisco Núñez Francisco Núñez - 2023-04-15 18:02:50 - In reply to message 1 from Mat Jung
You are wrong... this is something that is only executed once in the case of a web environment... you save the information in a session etc if you have users, or you can save it in an environment variable... it all depends on the implementation.

I can also say that there is a great overload in the frameworks when after the installation you do not take advantage of even 25% of everything you installed.