se hai visto sul manuale alla voce path_translated dice che intanto e' basato sul filsystem e non sul document root e che dalla versione 4.3.2 di php non e' piu implicitamente settato su Apache2. Quindi dipende dalla versione sia di php che di apache e del settaggio di apache2....Originariamente inviato da Griffonsuper
grazie mille, funziona, ma come mai il codice precedente non mi funzionava?
è dovuto al fatto che è un codice vecchio?
Quando lo pubblicavo su Altervista.org funzionava... :master:
'PATH_TRANSLATED'
Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping.
Nota: As of PHP 4.3.2, PATH_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH_TRANSLATED should only exist if PATH_INFO is defined.
Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO.

Rispondi quotando