Jump to content

Search the Community

Showing results for tags 'geolocation'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 4 results

  1. 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 }
  2. 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.
  3. 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
  4. 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.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.