Samoht: pfad mit variable

Beitrag lesen

<?php include '../aaa/bbb/ccc- $lng .html'; ?>

singlequotes werden nicht "geparsed", also erkennt PHP die Variable nicht.

Schreibe

<?php include '../aaa/bbb/ccc-'.$lng'.html'; ?>

Gruß, Samoht

--
fl:| br:> va:) ls:< n4:( ss:) de:] js:| mo:}
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
(Kristian Wilson, Nintendo, 1989)