Mailinglisten-Archive |
nein, ich will den akt. pfad im dateisystem, nicht den unterhalb htdocs.
momentan mache ich es so:
$pwd = exec("pwd")
wuerde aber lieber auf den exec aufruf verzichten...
/achim
>
> >wie bekomme ich den aktuellen pfad raus??
>
>
> $path = $PHP_SELF;
> $path_array = explode("/",$path);
> $path_array_length = count($path_array);
> $filename = $path_array[$path_array_length - 1];
> $pathname1 = $path_array[$path_array_length - 3];
> $pathname2 = $path_array[$path_array_length - 2];
>
> sollte Dir das gewünschte Ergebnis liefern
>
> Alexander
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
>
php::bar PHP Wiki - Listenarchive