News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Reinheimer:
Using GeoIP at WonderProxy
November 07, 2013 @ 10:57:09

Paul Reinheimer has a new post talking about some of his experience implementing GeoIP at his HTTP testing proxy service WonderProxy (and the steps you'd need to take to make it work for your application). The GeoIP service helps you identify the sources (geolocation) of connections to your applications.

At WonderProxy we've been helping people test their GeoIP sensitive applications since launch. It's why we launched. Perhaps ironically it's never been a technology we've used on our own website. With our upcoming re-design that's changing.

He's broken it down into four major steps, each with a bit of description to go along with them:

  • Using GeoIP
  • Acquire a database
  • Rebuild Apache & PHP (with the Apache module)
  • Handle edge cases

This isn't a detailed tutorial to getting GeoIP support working in your app, but it does provide a good direction and links to several resources to help you along your way.

0 comments voice your opinion now!
geoip geolocation wonderproxy overview tutorial database

Link: http://blog.preinheimer.com/index.php?/archives/421-Using-GeoIP-at-WonderProxy.html

DotKernel.com:
Installing GeoIP extension in Zend Server 5.6 on Windows
August 01, 2013 @ 10:10:26

On the DotKernel.com site today there's a post walking you through the installation of the GeoIP extension on Zend Server (5.6) on Windows. It starts with a bit of test code to check and see if you might already have it installed.

The steps are relatively easy:

  • Download the extension package
  • Copy it to the right location
  • Use the Zend Server interface to turn on the extension
  • Download and copy some geoIP databases from Maxmind

Most of these steps go for any extension you want to install, but keep in mind since it's Windows you'll need the .dll file, not the source to compile. Some extensions may not have this available for download.

0 comments voice your opinion now!
geoip extension zendserver windows tutorial

Link: http://www.dotkernel.com/dotkernel/installing-geoip-extension-in-zend-server-5-6-on-windows/

Stefan Koopmanshcap's Blog:
Installing the Geoip PECL package for Zend Server on OSX
January 12, 2012 @ 11:09:56

In this recent post to his blog Stefan Koopmanschap shares some of the troubles (and a solution) when he was dealing with getting the Geoip PECL extension installed on his Zend Server setup in OSX.

Today I needed to get a client application up and running on my local system. This application uses the Geoip PECL package, so I needed to get this up and running. This turned out to be slightly more difficult than just a PECL install, as you're missing some libraries by default, so here is my log of things to do to get it up and running.

He gives the complete list of steps his followed including downloading the source and his way around this "System could not load this extension" issue. The trick was to recompile the source with the correct architecture. By default his extension was built with i386 instead of 64-bit but updating some of the CFLAGS settings (and a few other environment variables) got things compiling correctly.

0 comments voice your opinion now!
geoip osx install pecl extension tutorial compile architecture


Matthew Turland's Blog:
Gotcha on Scraping .NET Applications with PHP and cURL
July 01, 2010 @ 08:51:36

New on his blog today Matthew Turland has posted about a "gotcha" he came across when working with cURL to pull down information (scrape content) from a remote .NET application.

I recently wrote a PHP script to scrape data from a .NET application. In the process of developing this script, I noticed something interesting that I thought I'd share. In this case, I was using the cURL extension, but the tip isn't necessarily specific to that. One thing my script did was submit a POST request to simulate a form submission. [...] The issue I ran into had to do with a behavior of the CURLOPT_POSTFIELDS setting that's easy to overlook.

The problem was something cURL does automatically - change the header for the content type because you're sending an array. Thankfully, with the help of a call to http_build_query to encode it correctly, the request will use the right headers.

0 comments voice your opinion now!
net application scrape content gotcha curl


An Phillips' Blog:
COM/.NET Interop in Zero PHP
January 29, 2009 @ 15:03:25

Ant Phillips looks a bit at some interoperability between the PHP and Project Zero when to comes to using the COM/.NET extension.

Zero doesn't currently support the COM/.NET extension in PHP. No matter though, there is a handy open source project called JACOB that bridges between Java and COM/.NET. In fact, there is an easier way to do this using a Groovy library called Scriptom. This is really just a friendly wrapper around JACOB to provide a better syntax for calling methods and accessing properties.

He also includes a quick introduction and howto on getting the functionality up and working in a Windows environment - download, add the JAR to your path, edit your php.ini and copy and paste some example code in to see it in action.

0 comments voice your opinion now!
com net interoperability zero extension jacob scriptom


Asvin Balloo's Blog:
Geolocate your visitors with PHP (part 2)
July 30, 2008 @ 12:08:10

Asvin Balloo has posted the second part of his geolocate with PHP tutorial series - using the mapping information gathered from the previous article to plot them on a map.

In the first part of this series I showed how you could get the country of a visitor via his IP address. Now with this precious information, I'll show you how to map the visitor visually on the world map using Google Maps.

The full code is provided - the PHP to pull the latitude/longitude information from the GeoIP library and the Javascript to get the Google Map to plot the point. You can check out the live demo for an example or just grab the source and try it out for yourself.

0 comments voice your opinion now!
geolocate google map geoip javascript tutorial


Asvin Balloo's Blog:
Geolocate your visitors with PHP (part 1)
July 21, 2008 @ 08:49:29

On his blog today Asvin Balloo has posted the first part of his look at his method for geolocating the visitors to your website using the PEAR GeoIP package and the MaxMind GeoLite Country information.

In this first part, he just makes sure that you have what you need installed before really getting started. Brief installation instructions are provided and example code is included to make sure things are up and working correctly (a lookup for whatever IP you're coming from).

It uses the lookupCountryName method to translate the information based on the MaxMind data.

0 comments voice your opinion now!
geolocate visitor maxmind pear geoip geolite tutorial


DeveloperTutorials.com:
PHP 6 now with .net Visual Studio integration available already
April 01, 2008 @ 14:57:08

On the Developer Tutorials site, there's an article talking about the integration that can be made with PHP6 and .NET Visual Studio:

PHP, .net and Silverlight will be integrated out of the box, along with Visual Studio 2008. The project has long been in the works, but our sources have informed us of an impending announcement that PHP 6 will ship with .net.

The glue between them is a part of the phlanger project.

2 comments voice your opinion now!
php6 net microsoft visualstudio integrate


DeveloperTutorials.com:
Effective Geotargeting with PHP
January 28, 2008 @ 09:47:00

The Developer Tutorials blog has a new article that talks about their method for creating simple geotargeting for your visitors.

In this tutorial, we'll take a look at the technique of geotargeting, or serving content to users based on their physical location. The technology is invaluable; with simple techniques, you can target advertising to specific users, collect more accurate usage statistics, serve content in different languages for different regions and provide local information like weather reports to your visitors.

They use the GeoIP services offered by Maxmind to perform the IP to location translation and the PEAR package already created to make the integration as painless as possible.

1 comment voice your opinion now!
geotargeting tutorial geoip maxmind pear package


Community News:
PHP on .NET Dynamic Language Runtime
October 23, 2007 @ 17:03:00

A new post to the php.evangelism mailing list has started up a great discussion on something that a lot of users seem to be in favor of - trying to get PHP accepted by Microsoft to be included in its Dynamic Language Runtime environment.

From the inital post:

I am wondering why there isn't any effort in the PHP community to get PHP into the DLR. If nothing, DLR is yet another platform, and for a php programmer it gives one more playground to showcase his skillset. Anyway, my question is whether there would be any community effort to get MS adopt PHP into CLR too. I am sure there is a genuine customer requirement, and enterprises have made quite a bit of investment in PHP and they would all love to be able to take it to the .NET platform.

Responses so far include the pointing out of problems, possibilities like a Zend collaboration and lots of talk on what such a project would entail.

0 comments voice your opinion now!
dlr dynamic language runtime net microsoft dlr dynamic language runtime net microsoft



Community Events











Don't see your event here?
Let us know!


database symfony2 example unittest security podcast composer performance framework install component release facebook hack application project package introduction hhvm language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework