Sponsored Content
Top Forums Web Development PHP client location based page loading Post 302606434 by zing_foru on Sunday 11th of March 2012 12:20:38 PM
Old 03-11-2012
PHP client location based page loading

Hi,

I am new to PHP and at first got a task where I need some clues and help.
So I am here.. The server is build to provide customized access for modules
as per location. If client location is US then it shows modules and pages
specific to US and if location is UK then it shows UK specific things.

My task is to switch a default unique location for administration access in server.

For example
If client is browsing from UK or Austria or France or from anywhere the server should provide
pages specific to US.

The location is determined by IP address. I found something $__SERVER{'REMOTE_ADDRESS'}
can I set this to the IP address specific to USA? Please give me some ideas & links.

Thanks...
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to detect ip address based location using PHP

I am interested in finding out if there is a reliable and economical way for extracting user's location based on his ip address, using php I tried to get the job done using ip2location.com, but I am not happy how it deals with result inconsistently. (2 Replies)
Discussion started by: siftin-com
2 Replies

2. Shell Programming and Scripting

background image not loading in newly thrown html page by shell script

I m trying to throw back html page when a file is found.While throwing back html page, the background image is not coming. I am using Apache server.Please suggest how to resolve... #!/bin/ksh echo -e "Content-type: text/html\n\n" echo "<html><head></head><body background=\"/asc/ppp.jpg\">"... (10 Replies)
Discussion started by: ravi18s
10 Replies

3. Shell Programming and Scripting

How to pass data from server (CGI script) to client (html page)

Hi I know how to pass data from client side (html file) to server using CGI script (POST method). I also know how to re-create the html page from server side after receiving the data (using printf). However I want to write static pages on client side (only the structure), and only to pass... (0 Replies)
Discussion started by: naamabm
0 Replies

4. Web Development

HTML/PHP show IMG based on location

HI guys/gals, I like to add some personal touches to a welcome image on our mediawiki site, and have the welcome be displayed in the, presumed, language of the visitor. Standard would be English, but if the IP or browser or OS is set to be in India, I want to display the message in Urdu for... (5 Replies)
Discussion started by: lawstudent
5 Replies

5. Shell Programming and Scripting

Parse based on location

I do have a big text file >A1 ACFGTSDCHG_GDF DGHA >A2 A_FGGSD_HG_GSF DGTA >A3 AC_GSDD_TU_GDF DGH_ .. ... there are equal number of characters within all the sub-headers. I want to parse out all the characters under each sub-header from user specified locations. For example, I want... (5 Replies)
Discussion started by: Lucky Ali
5 Replies

6. Red Hat

/usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0

Hi All, I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error.. /usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory It finnaly ends with the... (6 Replies)
Discussion started by: IgnitedMind
6 Replies

7. What is on Your Mind?

Loading Animation for Large Man Page Repositories

Should have done this 10 years ago, so better late than never: Just added a "loading" animation to the the man page repositories when they load, especially since some are very large and take many seconds to load. See for example: https://www.unix.com/man-page-opensolaris-repository.php ... (1 Reply)
Discussion started by: Neo
1 Replies
IPCONTROLLER(1) 														   IPCONTROLLER(1)

NAME
ipcontroller - IPython parallel computing controller control tool SYNOPSIS
ipengine [options] DESCRIPTION
ipcontroller is a control tool for IPython's parallel computing functions. OPTIONS
-h, --help show this help message and exit --client-ip=CLIENT_IP the IP address or hostname the controller will listen on for client connections --client-port=CLIENT_PORT the port the controller will listen on for client connections --client-location=CLIENT_LOCATION hostname or ip for clients to connect to -x turn off all client security --client-cert-file=CLIENT_CERT_FILE file to store the client SSL certificate --task-furl-file=TASK_FURL_FILE file to store the FURL for task clients to connect with --multiengine-furl-file=MULTIENGINE_FURL_FILE file to store the FURL for multiengine clients to connect with --engine-ip=ENGINE_IP the IP address or hostname the controller will listen on for engine connections --engine-port=ENGINE_PORT the port the controller will listen on for engine connections --engine-location=ENGINE_LOCATION the IP address or hostname for engine to connect to -y turn off all engine security --engine-cert-file=ENGINE_CERT_FILE file to store the engine SSL certificate --engine-furl-file=ENGINE_FURL_FILE file to store the FURL for engines to connect with -l LOGFILE, --logfile=LOGFILE log file name (default is stdout) -r try to reuse all furl files SEE ALSO
ipython(1),ipcluster(1),ipengine(1) AUTHOR
ipcontroller is a tool that ships with IPython, created by the IPython Development Team. This manual page was written by Stephan Peijnik <debian@sp.or.at>, for the Debian project (but may be used by others). Modified by Fer- nando Perez <Fernando.Perez@berkeley.edu> for inclusion in IPython. October 29, 2008 IPCONTROLLER(1)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy