Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Php Script Wanted

Featured Replies

Ok, I'm sure this is pretty basic staff for everyone who ever wrote anything in PHP (I've only done ASP myself, never PHP).

what I'm looking for is:

If (IP Address is from Thailand)

load x.html

else

load y.html

Thanks in advance.. :o

I dunno php at all, but this is basically what u need to write. You will need to know what a TH IP looks like and test these with a case or if stmt. You will prolly need to use the php string functions as well to split the ip string.

$IP = $_SERVER['REMOTE_ADDR'];

if ($IP == "127.0.0.1")

{

header("Location: http://www.url1.com/");

}

else

{

header("Location: http://www.url2.com/");

}

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.