Share » Forums » Install & configuration » possible fix for the CGI problem

possible fix for the CGI problem

possible fix for the CGI problem

Friday 05 March 2004 3:27:59 am - 2 replies

Modified on Friday 05 March 2004 9:42:16 am by Ben Pirt

Author Message

Derick Rethans

Monday 08 March 2004 12:44:34 am

Testing for CGI can better be done by:
if (php_sapi_name() == 'cgi')

besides that, we added support for CGI to ezp 3.4.

Ben Pirt

Monday 08 March 2004 1:24:22 am

Glad to hear that CGI support is in 3.4
For now though, if we do this;

if (php_sapi_name() == 'cgi')
//we are running as a cgi
$phpSelf = eZSys::serverVariable( 'REQUEST_URI' );
}else{
//we are running as a module
$phpSelf = eZSys::serverVariable( 'PHP_SELF' );
}

eZ publish 3.3 will run on a CGI setup too.
Thanks for the tip on php_sapi_name,
All the best,
Ben Pirt

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu