|
|
 |
Re: FN-FORUM: Puzzled
date posted 22nd January 2005 12:57
Get it - so it will go straight to the Location in header('Location:' .
$location ); - OOPS - stupid me.
Pam
----- Original Message -----
From: "Joe Freeman" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Saturday, January 22, 2005 1:21 PM
Subject: Re: FN-FORUM: Puzzled
>
> die() just tells PHP to stop going through the code send the page.
> It's often used for fatal errors as you can set text as the attribute.
>
> Regards, Joe.
>
>
> On 22 Jan 2005 12:46:13 -0000, PAMELA WHITTAKER [EMAIL REMOVED]
> wrote:
>>
>> Ah - So $_GET['googs'] could be something that has been added by whatever
>> is
>> rewriting the URL's. The site content definitely changes if it thinks it
>> is
>> being searched - I managed to work that bit out - phew. It is written in
>> such a complicated way that it is going my head in. I am not surprised if
>> it
>> is frowned on by Google. I am supposed to be basing another site on it so
>> perhaps I should leave out the Google bits. The bit that really confuses
>> me
>> in the bit of code is why is there "die()" - I would have expect it to
>> carry.
>>
>> Pam
>>
>>
>> ----- Original Message -----
>> From: "Joe Freeman" [EMAIL REMOVED]
>> To: [EMAIL REMOVED]
>> Sent: Saturday, January 22, 2005 12:26 PM
>> Subject: Re: FN-FORUM: Puzzled
>>
>> >
>> > I guess 'googs' is something to do with Google. Basically, it's
>> > saying: if 'googs' is in the query string, then set the session
>> > variable (presumably for use later on), otherwise, if 'nogoogs' is in
>> > the query string, then unset the session and redirect to hide the
>> > query string. The $_GET['googs'] and $_GET['nogoogs'] aren't set in
>> > the code because they are variables that are taken from the query
>> > string of the URL. Have a look around in the code for the session
>> > variable for more clues. It may be that the site is changing it's
>> > content if it thinks it's being searched by a GoogleBot - I'm not sure
>> > what the consequences of this are, but it's frowned upon my Google (I
>> > think).
>> >
>> > Hope this helps,
>> > Joe.
>> >
>> >
>> > On 22 Jan 2005 11:09:51 -0000, PAMELA WHITTAKER [EMAIL REMOVED]
>> > wrote:
>> >> I think that your idea of the URL filter is the most likely as the
>> >> links
>> >> looked like the second lot originally and then they made it Search
>> >> Engine
>> >> friendly before we took it over - thanks.
>> >>
>> >> I am also puzzled with this bit of code:-
>> >>
>> >> function main_nav()
>> >> {
>> >> if (isset($_GET['googs']))
>> >> {
>> >> $_SESSION['session_bot']=true;
>> >> }
>> >> elseif ( isset($_GET['nogoogs']))
>> >> {
>> >> $_SESSION['session_bot']=false;
>> >> $location = str_replace( 'nogoogs' , '' ,
>> >> $_SERVER['REQUEST_URI'] );
>> >> header('Location:' . $location );
>> >> die();
>> >> }
>> >>
>> >> $_GET['googs'] and $_GET['nogoogs'] aren't set in the code anywhere so
>> >> it
>> >> must be something on the server at a guess but what and what is the
>> >> purpose
>> >> of it? Any ideas please. I imagine it has something to do with google
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|