Bonjour à tous,

Je viens vers vous avec un probléme epineux ( oui dsl .. )

voila : j'ai ( par ex. ) 3 dossiers : sun - moon - earth

Dans chaque dossier j'ai 2 fichiers : "sphere.php" and "cube.php" et à l'inérieur de chaque fichier ( "sphere.php" et "cube.php" donc ... ) j'ai la phrase : "sphere-planet".

Mon but est de remplacer "planet" avec le nom de du dossier, comment faire ? ..


Donc a l'ini, j'ai ceci :

/sun __sphere.php ( à l'inérieur j'ai "sphere-planet" )
|__cube.php ( à l'inérieur j'ai "sphere-planet" )

/moon __sphere.php ( à l'inérieur j'ai "sphere-planet" )
|__cube.php ( à l'inérieur j'ai "sphere-planet" )

/earth __sphere.php ( à l'inérieur j'ai "sphere-planet" )
|__cube.php ( à l'inérieur j'ai "sphere-planet" )

Mon but est d'obtenir ceci :

/sun __sphere.php ( à l'inérieur j'ai "sphere-sun" )
|__cube.php ( à l'inérieur j'ai "sphere-sun" )

/moon __sphere.php ( à l'inérieur j'ai "sphere-moon" )
|__cube.php ( à l'inérieur j'ai "sphere-moon" )

/earth __sphere.php ( à l'inérieur j'ai "sphere-earth" )
|__cube.php ( à l'inérieur j'ai "sphere-earth" )

Donc si quelqu'un à une idée comment faire avec Munge ... Au secours !