Re: Re[2]: [PHP] Best way to do this: www.domain.com?page=var

2006-01-17 Thread Michael Hulse
Wow, thanks for all the great advice everyone! Very good info... all of 
your suggestions have been very helpful. I appreciate it.


• I would have never thought to just require() the page... good idea.  
:)
• Still checking out server options... waiting for info from client on 
that tip.
• Mod rewrite looks very interesting and useful, reading/learning about 
it now.
• Header and Location redirects... Glad to hear all of your thoughts 
about the pros/cons of the two. Thanks.  :)
• Also, thanks for all the snippets of code. Definitely got me thinking 
in the right direction.



Have a great new year!
Cheers,
Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><º>
`·.¸¸><º>¸.·´¯`·.¸¸><º>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[2]: [PHP] Best way to do this: www.domain.com?page=var

2006-01-17 Thread Richard Correia
Hey Steve,

I know it can be done easily using apache rewrite rules. Since this user may
not know it, I suggested location header.

Rich

On 1/17/06, Steve Clay <[EMAIL PROTECTED]> wrote:
>
> Tuesday, January 17, 2006, 10:54:21 AM, [EMAIL PROTECTED]:
> > If you can't set a new 'default page' on your server, using a
> > header('Location: ...') will simulate the same thing.
>
> Not really.  Sending a "Location:" header says, "this page is temporarily
> moved" and the browser has to send a 2nd request for the new location.
> Whether redirecting via PHP (header), javascript or meta-refresh, these
> all
> needlessly force the browser to ask for the page twice, and potentially
> cause bookmarking/spidering issues when used for the home page.  Amazon
> does this and it's annoying; some browsers just will not "remember" the
> plain old "http://amazon.com/"; that you typed in because only a redirect
> lives there.
>
> With a proper server config, the contents of start.php would be
> immediately
> sent to the browser.  This is good.  But if you can't set this on the
> server,
> this simple PHP script (index.php) does the same thing:
> 
>
> Steve
> --
> http://mrclay.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>