 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Stefan Koopmanshcap's Blog: Installing the Geoip PECL package for Zend Server on OSX
by Chris Cornutt 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.
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
by Chris Cornutt 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.
voice your opinion now!
net application scrape content gotcha curl
An Phillips' Blog: COM/.NET Interop in Zero PHP
by Chris Cornutt 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.
voice your opinion now!
com net interoperability zero extension jacob scriptom
DeveloperTutorials.com: Effective Geotargeting with PHP
by Chris Cornutt 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.
voice your opinion now!
geotargeting tutorial geoip maxmind pear package
Community News: PHP on .NET Dynamic Language Runtime
by Chris Cornutt 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.
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!
|