Right. My bad.

Heh, I have an excuse.. it's before noon here ;)

Definitely go with the <meta> approach, then:


    <meta http-equiv="refresh" content="0; url=index.php" />
<a href="index.php">Click here to enter the site</a>


this wouldn't work from an index.html page unless html pages were set up to 
parse as php file...

At 10:35 AM 10/26/2001 -0700, you wrote:
>Before any of your HTML code, put in:
>header('Location: index.php');
>If anything has been sent to the browser yet (through echo/print/etc, or 
>through code outside of the <?php ?> tags), though, you will get an error.
>René Fournier wrote:
>>This is really I guess a non-PHP question, so please excuse...
>>What is the most reliable, browser-safe way to redirect the browser from a
>>default index.html to, say, index.php?  The I'm doing it now is with the
>>following javascript:
>><script type="text/javascript" language="Javascript">
>>And it works, but I wanted to know if any of you are using a better [more
>>compatible] way of redirecting the browser (say, if it doesn't have
>>JavaScript (!?)).
>>Rene Fournier
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to