|
Posted by Jerry Stuckle on 08/22/07 18:18
rf wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:W8WdnSD-aoCOvlHbnZ2dnUVZ_g-dnZ2d@comcast.com...
>> Alan Silver wrote:
>>> Hello,
>>>
>>> Sorry for the newbie question, but I've only been at PHP for a couple of
>>> days, and I'm trying to get some stuff done as fast as possible. I'm an
>>> experienced ASP.NET programmer, and am trying to find some equivalent
>>> stuff in PHP.
>>>
>>> In ASP.NET there is a method called Server.Transfer which transfers the
>>> request to a different page from the one that the user requested, but
>>> without doing a redirect. The user gets sent headers as though they were
>>> seeing the page they requested.
>>>
>>> Does PHP have such a function? I have seen the function...
>>>
>>> header('Location: page.php');
>>>
>>> ...but these seems to be a redirect, which is not the same thing. I don't
>>> want the headers altered as I want the search engines to see the page
>>> with the original URL.
>>>
>>> TIA for any help.
>>>
>> No, it doesn't. But I wish it did.
>
> Am I totally missing something simple here?
>
> <?php>
> // make sure no output has occurred, especially headers
> if (whatever)
> {
> include 'the other page';
> exit;
> }
> <?>
>
That doesn't redirect - as the op requested.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|