FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » buffering to allow headers in code?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: buffering to allow headers in code? [message #170203 is a reply to message #170194] Mon, 18 October 2010 00:03 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/17/2010 1:31 PM, Thomas 'PointedEars' Lahn wrote:
> MikeB wrote:
>
>> Thomas 'PointedEars' Lahn wrote:
>>> MikeB wrote:
>>>> 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/") ?
>>>
>>> None of the above. You should not need to use the header() function at
>>> all:
>>>
>>> <http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex>
>>
>> This is not at all clear to me. You refer me to an Apache page, where I
>> cannot programatically code stuff.
>
> I have referred you to the Apache documentation telling you how to define
> index.php as the "directory index" so that it is not necessary to write
> index.php in the URI to begin with. See also
> <http://www.w3.org/QA/Tips/uri-choose>.
>
>> More specifically, mod.dir is to define what happens if i send in a URL
>> without a file and extension.
>
> Yes. And?
>
>> How does this help me if I'm in the midle of a PHP program and I decide
>> I need to reload the page?
>
> You appear to be a bit confused, and your use-case is not at all clear to
> me. For reloading a document (there really are no "pages" on the Web) you
> would choose *client-side* means, of course.
>
>
> PointedEars

And, as usual, you are a total idiot.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mesothelioma
Next Topic: Good code or bad code?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 07:26:27 GMT 2024

Total time taken to generate the page: 0.03030 seconds