open url through header in php

Posted by sumit on Stack Overflow See other posts from Stack Overflow or by sumit
Published on 2010-06-16T21:11:02Z Indexed on 2010/06/16 21:22 UTC
Read the original article Hit count: 157

Filed under:

I have a .php file in which i have a added a simple code:

<?php
header("Location:http//www.google.com");
?>

when i run this code, then instead of opening google.com it opens a download file, which is the same as my php file.

© Stack Overflow or respective owner

Related posts about php