Re: buffering to allow headers in code? [message #170170 is a reply to message #170168] |
Thu, 14 October 2010 16:36 |
MikeB
Messages: 65 Registered: September 2010
Karma:
|
Member |
|
|
Michael Fesser wrote:
>
> At least partly I have to agree. If this is what your instructor told
> you:
>
> header("Location: index.php");
>
> then he might be the wrong one for this job. The above violates the HTTP
> RFC and can be considered a bug. It also violates conventions for good
> URLs, because you should never link or redirect to index.* files.
> Instead you use the directory - that's what these index files are for.
Do you mind explaining this? If I understand you, if my site is
http://localhost/recipes/index.php
I should code:
header("location: /") ?
or
header("location: localhost/recipes/") ?
|
|
|