Re: Re: site path

From: Date: Thu, 10 Oct 2002 17:29:33 +0000
Subject: Re: Re: site path
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-119558@lists.php.net to get a copy of this message
Not exactly. Single quotes are fine. I missed the fact that the single quotes here >> echo("<A HREF='$my_URLhome'>Go home</A>"); will be included in the source--sorry about that. Well, then, to rewrite the code earlier, > echo '<a href="' . $my_URL . 'home">Go home</a>'; this way: echo "<a href='" . $myURL . "home'>Go home</a>"; that would still not give you the "trailing slash" problem. In other words, it's just a matter of how you write the code... ;) - E On Friday, October 11, 2002 1:06 AM Bogdan Stancescu wrote: > I'm not sure exactly what you're trying to point out - does XHTML > require double quotes? > > Bogdan > > @ Edwin wrote: > > Just a thought... > > > > If you're going to write an XHTML compatible code, you wouldn't really have > > this problem --> > > > >> echo("<A HREF='$my_URLhome'>Go home</A>"); > > > > > > since you'll probably write something like this: > > > > echo '<a href="' . $my_URL . 'home">Go > > home</a>'; > > > Of course, I didn't mean that you can't do that with HTML... [snip]

« previous php.general (#119558) next »