Re: PHP rada

From: Jiri Matejka (matejka@runway.cz)
Date: 02. 09. 2002, 23:14 CEST


> $adresar=dirname("/fs/php/sc/last");
> V $adresar budes mat priradene: /fs/php/sc

jo jo, je to ten nejlepsi zpusob

take me jeste napadlo
$cesta = "/fs/php/sc/last";
$casti = explode("/", $cesta);
unset($casti[count($casti)-1]);
$orezano = implode($casti, "/");

:-)))

Jirka



This archive was generated by hypermail 2.1.2 : 02. 09. 2002, 23:15 CEST