Question

A simple and maybe stupid question:

Can I use the exact same PHP code no matter whether PHP is installed as a module or as a cgi binary? I understand that the processing is different in these two cases but does Apache take care of it for me altogether (provided I have made the right settings in httpd.conf) or does it have to be reflected in the actual PHP code somehow? Could I port code from a mod_php solution to a cgi-bin solution without changing it?

Was it helpful?

Solution

Unless the PHP version itself is different (5.4, 5.3, etc), the same block of code will run the same regardless of the webserver software installed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top