Posted by Geoff Berrow on 09/19/05 19:37
I noticed that Message-ID:
<1127146813.563664.109190@g43g2000cwa.googlegroups.com> from
hougie40@hotmail.com contained the following:
>$variable = "test";
>
>echo "c:\websites\menu\" . $variable;
The backslash is the escape character. For it to be a literal backslash
you have to escape it with...uh...a backslash.
echo "c:\\websites\\menu\\" . $variable;
Or you could do
echo "c:\\websites\\menu\\$variable";
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|