|
Posted by Toby A Inkster on 10/15/34 12:00
Mikii wrote:
> echo "<li><a href=\"". $filename . ". html" "\">".
> $filename."</a></li>\n"
>
> gives parse error unexpected T_CONSTANT_ENCAPSED. Is this an escaping
> issue?
echo "<li><a href=\"". $filename . ".html\">". $filename."</a></li>\n"
Or, more readably:
printf('<li><a href="%s.html">%s</a></li>'."\n",
$filename,
$filename);
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 18 days, 32 min.]
Gnocchi all'Amatriciana al Forno
http://tobyinkster.co.uk/blog/2008/01/15/gnocchi-allamatriciana/
Navigation:
[Reply to this message]
|