September 8, 201115 yr Can anyone see what's going wrong here? <?php header( 'location: ftp://ip_addess_goes_here' ) ; die(); ?> The only problem is with IE, "cannot display the webpage" Cheers Edited September 8, 201115 yr by WBC
September 8, 201115 yr Author I've changed my tac and gone with <meta HTTP-EQUIV="REFRESH" content="0; url=ftp://ip_address"> This seems to work.
September 13, 201115 yr IE always seems to have a problem with header redirects. Header redirect a php page to a pdf you've just created works in browsers which process the header information correctly but not in IE because it thinks it's getting a php file and finds a pdf. IE gets its file type information from the url and (by the looks of it) its protocol information too. That's why the page refresh option works.
September 13, 201115 yr Hi you can make a redirect by using javascript: <?php echo '<script>top.location.href = "ftp://ip_addess_goes_here";</script>'; ?> thx
September 14, 201115 yr Author Thanks for the replies. I've kept with the meta as that working for me, but i'll remember these other ways for future use, cheers.
Create an account or sign in to comment