PDA

View Full Version : PHP as CGI


Edomondo
02-03-2005, 09:17 AM
Hi there.

What is the difference of PHP as CGI or as Apache module?

Except you can't set .htaccess, why does v.1.8.8 RC1 needs PHP being a module? Is there a way to set it with PHP as CGI?

Charter
02-03-2005, 11:20 AM
PhpDig v.1.8.8 RC1 uses a .htaccess file to set a couple of PHP values.

Regarding CGI versus Apache:

http://www.pmachine.com/forum/threads.php?id=26199_0_19_40_C
http://www.google.com/search?q=http%3A%2F%2Fwww.webmasterworld.com%2Fforum88%2F3645.htm
http://forum.powweb.com/archive/index.php/t-1104.html

There are proponents and opponents for each.

Edomondo
02-04-2005, 04:18 AM
I see. Seems like what is best between PHP & ASP...

Besides you can't set the .htaccess file in the PhpDig root directory, can PhpDig work OK with PHP as CGI?
If not, what will change between both configurations?

Charter
02-05-2005, 01:32 AM
You could try setting the PHP values from the .htaccess file in the php.ini file instead. Other than that, I don't see why PhpDig wouldn't work with PHP as CGI, but I haven't tested it so who knows.