Jump to Navigation

289 - PHP Header() Function

Redirecting URLs in PHP centers around the PHP Header() function.

For example :
Suppose you want acheter viagra to redirect to this URL http://www.somewebsite.com/target.php.
In the originating PHP page, you will simply call this script in like index.php:

<?php
header('Location: http://myserver/index.php');
?>

 

PHP:


Main menu 2

Story | by Dr. Radut