[Pi3web-users] PATH_TRANSLATED when using SAPI
Brought to you by:
zimpel
From: Celvin <rea...@gm...> - 2004-04-06 19:35:29
|
Hi! After PHP now finally works again, I was wondering on how to add variables to the SAPI environment. Although the docs state that for PHP using SAPI, PATH_TRANSLATED is indeed available, I couldn't access it (and I have verified it isn't passed via phpinfo), and I need to have some additional variables available, so if it's possible, it'd be nice to know anyway... Another topic (regarding file types) is, if it is actually needed to define a MIME type for every extension the server should handle, i.e. I want an external application / library to handle .BAK files, as there are different people developing, so .BAK files should be passed through an external application that verifies access for a given user and either outputs his own files only, or redirects him to an error page. Access verification is done through an external DB, so checking file types via Pi3 isn't an option. To summarize: would be defining an internal MIME type and a handler the prefered way of doing this? Well, thanks again in advance ;) Regards, Celvin |