Вопрос

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