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
HomePHP QuestionsHow to Redirect to Another Website Using PHP

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:

<?php

header('Location: http://www.google.com/');
exit;

?>

 

 
         

You May Also Like:

How to Redirect to Another Page using Javascript and HTMLHow to Redirect to Another Page using Javascript and HTML Browsing A Website Without Registration Using Mozilla Firefox How to Disable Right Click on Website using JavascriptHow to Disable Right Click on Website using Javascript

Recent Posts

  • What is the Difference Between Set and Object in Javascript
  • What is the Difference Between Set and Array in Javascript
  • What is the Difference Between Set and WeakSet in Javascript
  • What is the Difference Between Map and WeakMap in Javascript
  • What is the Difference Between Map and Set in Javascript

Useful Sites

  • Kody Tools
Privacy Policy
Collection of Helpful Guides & Tutorials! Copyright © 2023.
Back to Top ↑
x
x