Hi,
// Path-Size
$pathCount=count($path);Wieviele Teile sind das?
In diesem Fall 3.// Pfad erstellen
for($i= 0; $i<$pathCount; ++$i){
^^^^
$file.=$path[$i];
$file.=($i==$pathCount-1) ? ".php" : "/";
}Weil das letzte der Dateiname ist:
Setze alle im Array vorhandenen Teile mit "/" zusammen.
Wenn das letzte kommt, stelle ein ".php" hinten dran.
Aha, also nach dem Motto "lieber kompliziert, als implodiert"?
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.