Hey guys, I was given this code by a fellow member but I didn't want to bother him again so I was wondering if anybody else knew.
PHP Redirect help
10
Hey guys,
I was given this code by a fellow member but I didn't want to bother him again so I was wondering if anybody else knew.
<?php
$ip_address = $_SERVER['REMOTE_ADDR'];
if ($ip_address == '108.7.3.52')
header("Location: http://myurl.com/http://page.html");
else
header("Location: http://myurl.com/page2.html");
?>
I was wondering if anybody knows the function for an array (more than 1 ip).
Thank you in advance!
D
I was given this code by a fellow member but I didn't want to bother him again so I was wondering if anybody else knew.
<?php
$ip_address = $_SERVER['REMOTE_ADDR'];
if ($ip_address == '108.7.3.52')
header("Location: http://myurl.com/http://page.html");
else
header("Location: http://myurl.com/page2.html");
?>
I was wondering if anybody knows the function for an array (more than 1 ip).
Thank you in advance!
D
- lisag
- [ 1 ] Thanks
- [1] reply
- Udt
- [1] reply
- iampick
- [1] reply
- n7 Studios
- [ 1 ] Thanks
Next Topics on Trending Feed
-
10