Search the Community
Showing results for tags 'geolocation'.
-
I was wondering if there is a way to automatically get a user's timezone? I want to show certain information if the user's current date is less than the expiry date. It works fine if the user is in a default timezone but what if the user is in a different timezone? How I can I make sure I can get their correct current time? date_default_timezone_set('America/New_York'); $expiry_date = trim($row['expiry_date']); $current_date = date('Y-m-d H:i:s'); if($current_date < $expiry_date) { // show data } else { // don't show }
-
Qustion 1. What's the best Geolocation service that is free to use? All I want is change my website page based on users' location. I see that HTML5 has this. http://www.w3schools.com/html/html5_geolocation.asp Is that the best way to go? Question 2. Say I have a website where User 1 can make a direct payment to User 2 and I as a website owner gets a small % of that transaction(along with Paypal's fee of course). How difficult is that to embedd in the website? What's the process like? Do I just get a Paypal Pro account integrate the API within my website? Do I need to add additional securities like SSL certificate? I would prefer to keep the transaction outside the website, if it means I don't have to worry about the site security.
-
- geolocation
- payment processor
-
(and 3 more)
Tagged with:
-
Hi Guys... new to php... just signed up for CloudFlare and trying to use IP Geolocation any help would be appreciated... the goal is for the selected countries to show maintenance message. Otherwise show the content of the page this is what I have but its not working... <?php $country_code = $_SERVER["HTTP_CF_IPCOUNTRY"]; if ($country_code=="FR") { echo "Site Under Maintenance"; } elseif ($country_code=="UK") { echo "Site Under Maintenance"; } elseif ($country_code=="US") { echo "Site Under Maintenance"; } else { } ?> Thanks in advance
-
Hi, I am building an application in my page where I need to add geolocation functionality and I need the visitors zip code in return, like say within 100miles. I have some sample source code but returning only Country, States and City. Could anyone please help? Any input is greatly appreciated.
- 4 replies
-
- zip code
- geolocation
-
(and 1 more)
Tagged with: