Skip to content

Collection of Helpful Guides & Tutorials!

Collection of Helpful Guides & Tutorials!
Menu
  • Home
  • C#
    • Tutorials
    • C# Projects
    • Q & A
  • HTML5
  • CSS3
  • PHP
    • Tutorials
    • Q & A
  • SQL
  • JavaScript
    • Tutorials
    • Q & A
  • jQuery
    • Tutorials
    • Q & A
  • Bootstrap
  • Guides
  • Tools
December 20, 2015

How to Redirect to Another Website Using PHP

By Krishnaa PHP Questions  0 Comments

To redirect to another website in PHP, we make use of header function.  Sample code is given below:

1
2
3
4
5
6
<?php
 
header('Location: http://www.google.com/');
exit;
 
?>

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

You May Also Like:

Browsing A Website Without Registration Using Mozilla Firefox How to Get Array Length in PHP

Useful Sites

Recent Posts

  • How to Replace Content in Javascript
  • How to Add and Remove Event Listener in Javascript
  • How to Remove First and Last Element in Array in Javascript
  • How to Get Number of Characters in a String in Javascript
  • How to Replace all Occurrences of a String in Javascript
Collection of Helpful Guides & Tutorials! Copyright © 2021.
Back to Top ↑
This site uses cookies More info