0

From a php file I want to redirect to a specific local html file.

I tried the following:

echo "<script type='text/javascript'> 
window.location.href='file://C:/DescMan/abc.html';</script>";

with no success. Don't have an error, only a white page with my localhost php address.

Also I tried:

header('Location: file://C:/DescMan/abc.html');

header('Content-Disposition: filename="abc.html"');readfile("C:/DescMan/abc.html");

echo "<meta http-equiv='refresh' content='0'; url='C:/DescMan/abc.html'/>";

What I'm doing wrong?

BOB
  • 700
  • 2
  • 16
  • 35

0 Answers0