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

  • How to Insert Dash After Every Character in Input in Javascript
  • How to Insert Dash After Every 2nd Character in Input in Javascript
  • How to Insert Dash After Every 3rd character in Input in Javascript
  • How to Add Space After Every 4th Character in Input in Javascript
  • How to Insert Space After Every 4th Character in Input in Javascript
Privacy Policy
Collection of Helpful Guides & Tutorials! Copyright © 2023.
Back to Top ↑