You are here: Re: what am I doing wrong « PHP Programming Language « IT news, forums, messages
Re: what am I doing wrong

Posted by Aphrael on 09/19/05 19:30

hougie40@hotmail.com a écrit :
> Im a vb guy trying to figure out some php.
>
> For some reason it wont let me append these together.
>
> $variable = "test";
>
> echo "c:\websites\menu\" . $variable;
>
> dont understand...please help.

Ho, you do tell him to consider the final " as a text " instead of the
end of the string... (\ is the escape caracter...)

You just need to tell him it is the \ you want to escape... echo
"c:\websites\menu\\" . $variable;

By the way, isn't variable a reserved word ?

Aphrael...
--
"La demande mondiale d'ordinateurs n'excédera pas cinq machines."
(Thomas Watson, Fondateur d'IBM, 1945)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация