Hmm, I was expecting that. ;)
Looking back, when you said that this code
>echo("Go home");
> ?>
would obviously create a trailing slash problem, I should have just said
that it's true IF you code it that way. I should have just said that there's
an ALTERNATIVE way of coding that wouldn't cr
If you really need to get picky, then I shall... well, point out the
obvious:
echo "Go to some folder";
And since we got into this, there are some servers where you don't have
control over http config, so you shouldn't want to link to directories
at all - you'd want to specify the exact f
Well, I agree about what you said
> IMHO, the second comes more natural to write, is easier to understand at
> a glance, is less prone to errors and, well, it's shorter!
but remember the topic is about whether the trailing slash would create a
problem or not.
I think you're aware that there are
Ok, then I honestly don't understand why anyone would rather write this
echo "Go home";
instead of this
echo "Go home";
IMHO, the second comes more natural to write, is easier to understand at
a glance, is less prone to errors and, well, it's shorter!
Bogdan
@ Edwin wrote:
> Not exactly. Si
Not exactly. Single quotes are fine. I missed the fact that the single
quotes here
>> echo("Go home");
will be included in the source--sorry about that.
Well, then, to rewrite the code earlier,
> echo 'Go home';
this way:
echo "Go home";
that would still not give you the "trailing slash"
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("Go home");
>
>
> since you'll probably write som
Just a thought...
If you're going to write an XHTML compatible code, you wouldn't really have
this problem -->
>echo("Go home");
since you'll probably write something like this:
echo 'Go home';
Of course, I didn't mean that you can't do that with HTML...
Anyway, for the original questi
I generally use both - the first for includes and the second for HTML links.
Do NOT include the trailing slash. The reason is simple:
Go home");
?>
is much simpler to write and follow than
Go home");
?>
because you obviously can't write
Go home");
?>
Please remember that since the trailing slash
8 matches
Mail list logo