|
||||
Ok, me found a solution on the web and modified my code to:
Code:
<?php
$up = @fsockopen("pipx.zapto.org/scripts/HScart-v2.0.1", 80, $errno, $errstr, 30);
if($up)
{
echo "<html><head><meta http-equiv=\"REFRESH\" content=\"0;URL=http://pipx.zapto.org/scripts/HScart-v2.0.1\"><title>LOADING...</title></head><body text=\"#FFFFFF\" bgcolor=\"#000000\"></body></html>";
}
else
{
echo "<html><head><meta http-equiv=\"REFRESH\" content=\"0;URL=http://www.pipx.net/personal/index.htm\"><title>LOADING...</title></head><body text=\"#FFFFFF\" bgcolor="\#000000\"></body></html>";
}
?>
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML>
__________________
<hr> Enjoy Life!!! Damnit!!!!!!! |
|
||||
I'm not sure what kind of URL comparison you're trying to do. Are you trying to do a refferer check? If so, you can try this code. I just made this, it might not work since i haven't tested it (but it should work!) . If it doesn't work let me know, i'll fix it.
Code:
<?
/* declare your url */
$url = 'http://www.something.com';
/* http referer is to check where's the traffic is coming from and compare with the above url */
if ($_SERVER['HTTP_REFERER'] == $url ) {
/* this line redirect user to other site */
header('location: http://someotherwebsiteyouwant.com');
}
else {
/* if the url doesnt match, it will echo out the line "website dah kene tembak etc */
echo "website dah kene tembak etc";
}
?>
Code:
echo"<script>window.location='http://someotherwebsitethatyouwant.com';</script>"; |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie. (-_-) | kingbar | Member Introductions | 2 | 29-12-2006 11:22 AM |
| Total form looping textfield | koisempoi | Website Design | 2 | 09-05-2005 12:35 PM |
| Whois: total domain hosted | Filuren | Paid Hosting Discussion Forum | 12 | 08-10-2004 01:54 AM |
| Count total of records | jeb23 | Website Programming | 17 | 04-02-2004 07:15 PM |
| PHP FrameWork For TOTAL NEWBIE | bazet | Website Programming | 13 | 02-12-2002 04:19 PM |
All times are GMT +8. The time now is 11:12 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.













Linear Mode

