[dev] Re: [cvs] cvs commit: horde css.php
Jan Schneider
jan@horde.org
Sun, 23 Dec 2001 22:42:16 +0100
Zitat von Michael Cochrane <mike@graftonhall.co.nz>:
> Still not perfect because $HTTP_SERVER_VARS['SCRIPT_NAME'] is not going
> to
> contain the name of the script if you are using the cgi version of php,
> as i am
> under win32.
> i have changed mine to
> $send_headers = strstr($HTTP_SERVER_VARS['PATH_TRANSLATED'],
> 'css.php');
> as this value appears to be consistant between cgi and apache versions
> from the
> phpinfo screens i can get access to.
Good hint. I think we should take $HTTP_SERVER_VARS['PHP_SELF']. This
should be defined in any yet so obscure php platform.
Jan.
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::