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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top