[PHP] Re: how about walking another way?
Galkov Vladimir wrote: Good time of a day! Very strange... the code you place here works good (if forget one '=' ). I thinck you have to chek what you have in $name, $MYPATH, $MYPATH/admin.php... by the way what error you have? not such file? ... or somth special?... If still not working. (vay;-))) ) than remember than any mission can be completed in different ways try somth like this ;-) if ($name == admin) { print 'META HTTP-EQUIV=Refresh Content=0; URL='.$MYPATH.'/admin.php.''; } OK, thanks. That works. Strange ... Martin S -- 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]
Re: [PHP] Re: how about walking another way?
One observation on this.. there is a major difference between this and the the header(location:... header happens on the server side whereas the below is clientside and therefore unreliable. I know that netscape, particullarly on unix, is bad for ignoring this. header() is the only reliable way to do it! Galkov Vladimir wrote: Good time of a day! Very strange... the code you place here works good (if forget one '=' ). I thinck you have to chek what you have in $name, $MYPATH, $MYPATH/admin.php... by the way what error you have? not such file? ... or somth special?... If still not working. (vay;-))) ) than remember than any mission can be completed in different ways try somth like this ;-) if ($name == admin) { print 'META HTTP-EQUIV=Refresh Content=0; URL='.$MYPATH.'/admin.php.''; } OK, thanks. That works. Strange ... Martin S -- 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]
Re: [PHP] Re: how about walking another way?
Tom Carter wrote: One observation on this.. there is a major difference between this and the the header(location:... header happens on the server side whereas the below is clientside and therefore unreliable. I know that netscape, particullarly on unix, is bad for ignoring this. header() is the only reliable way to do it! Yes - I read years ago that some browsers have problem honouring META redirects. Didn't know that still is the case ... I've tried this with Mozilla, Navigator 4.77 and Konqueror (in KDE 2.2.1) on Linux, all work. Martin S -- 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]