I'm currently using GET to update my click counts into a database and then I redirect the user to the link by using
header('Location: '.$url);
Is there any better alternative way to do this?
Thanks.
I'm currently using GET to update my click counts into a database and then I redirect the user to the link by using
header('Location: '.$url);
Is there any better alternative way to do this?
Thanks.
That's how I've done it in the past, and it's worked fine for me.
I believe it's how Google does it too.
Why can't you just serve the actual page after updating the count? The only reason Google has to use redirection links is that they don't have control over the destination page.