Php Fatal Error Call To Undefined Function Geoip_record_by_name
Contents |
Sign in Pricing Blog Support Search GitHub call to undefined function geoip_country_code_by_name() This repository Watch 53 Star 309 Fork 148 php install geoip jdorn/php-reports Code Issues 97 Pull requests 12 Projects 0 Wiki Pulse Graphs New pecl geoip issue Call to undefined function geoip_record_by_name() #199 Closed russellhutsonmicro-p opened this Issue Aug 3, 2015 · 2 comments Projects None yet
How To Use Geoip Php
Labels None yet Milestone No milestone Assignees No one assigned 2 participants russellhutsonmicro-p commented Aug 3, 2015 Fatal error: Call to undefined function geoip_record_by_name() in C:\xampp\htdocs\php-reports\classes\filters\geoipFilter.php on line 4 Using MySql report Headers -- FILTER: { -- filter: "geoip", -- php7 geoip column: "ip_address" -- } -- CHART: { -- columns: ["ip_address"], -- type: "GeoChart", -- markers: true -- } and SQL SELECT submission_id, onf_handsetcode, onf_handsetname,monthlydeduction,onf_tariff,onf_network, fname,sname,empno,phone,email,curpostcode,submission_date,status,ip_address FROM mytable WHERE status='HRAPPROVED' Auz commented Aug 3, 2015 geoip_record_by_name() requires the GEOIP extension, and the database for IP lookups. http://php.net/manual/en/book.geoip.php russellhutsonmicro-p commented Aug 4, 2015 thanks! russellhutsonmicro-p closed this Aug 4, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers get country from ip php or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
Php Geoip
x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them;
Install Pecl
it only takes a minute: Sign up How to do a geoip lookup in php? up vote 3 down vote favorite 1 All tutorials I have seen have pointed towards functions like geoip_record_by_name. I always get this error: Fatal error: https://github.com/jdorn/php-reports/issues/199 Call to undefined function geoip_record_by_name() in /home/
be sure to check out the FAQ by clicking the link above. You may have http://forum.directadmin.com/showthread.php?t=43309 to register before you can post: click the register link http://php.net/manual/en/function.geoip-record-by-name.php above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: Maxmind PHP Geoip Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch call to to Hybrid Mode Switch to Threaded Mode 04-06-2012,07:12 AM #1 mieuxvivre View Profile View Forum Posts Registered User Join Date Apr 2012 Posts 2 Maxmind PHP Geoip I searched the forums but didn't find anything much in regard to a custom php install of Maxmind's PHP geoip. I would like to install call to undefined this on my Debian 6.0 64bit VPS running DirectAdmin. I want to set it up so that PHP code can call geoip information something like this: PHP Code: print_r(geoip_record_by_name('php.net'));
I tried installing by doing the following: Code: # wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz # gunzip GeoLiteCity.dat.gz # mkdir -v /usr/share/GeoIP # mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat # apt-get install php5-geoip But when I put the follow code in a file PHP Code:
print_r(geoip_record_by_name('php.net'));
I get the following error message: PHP Code:
Fatalerror:Calltoundefinedfunctiongeoip_record_by_name()
Please let me know what I'm missing in order to make this wor
and Objects Namespaces Errors Exceptions Generators References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting Using Register Globals User Submitted Data Magic Quotes Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Safe Mode Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation Keyboard Shortcuts? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search(current page) / Focus search box geoip_region_by_name » « geoip_org_by_name PHP Manual Function Reference Other Basic Extensions GeoIP GeoIP Functions Change language: English Brazilian Portuguese Chinese (Simplified) French German Japanese Korean Romanian Russian Spanish Turkish Other Edit Report a Bug geoip_record_by_name (PECL geoip >= 0.2.0)geoip_record_by_name — Returns the detailed City information found in the GeoIP Database Description array geoip_record_by_name ( string $hostname ) The geoip_record_by_name() function will return the record information corresponding to a hostname or an IP address. This function is available for both GeoLite City Edition and commercial GeoIP City Edition. A warning will be issued if the proper database cannot be located. The names of the different keys of the returning associative array are as follows: "continent_code" -- Two letter continent code (as of version 1.0.4 with libg