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

SitePoint PHP Blog:
Using GDELT 2 with PHP to Analyze the World!
Dec 12, 2016 @ 18:16:15

The SitePoint PHP blog has a tutorial posted by Patrick van Bergen showing you how to analyze the world using a combination of PHP and the data from the GDelt (Global Database of Events, Language and Tone) database.

Are you interested in political world events? Do you want to play with one of the world’s largest databases? If you answered either of those questions with a yes, keep reading – this will interest you! This article follows up on the promise to use GDELT with PHP.

I will show you a simple example of how to use GDELT through BigQuery with PHP, and how to visualize the results on a web page. Along the way, I will tell you some more about GDELT.

He starts by briefly introducing the GDelt service, what kind of data it contains and how to make some sample queries with their BigQuery dashboard. He then moves more into the code, talking about some of the basic concepts of the data and setting up an account you can use for your queries. The example code uses the Google Cloud library to access the API and execute the query. Included are examples of querying metadata, the different datasets available and some visualization examples.

tagged: gdelt analyze world data bigquery tutorial googlecloud api

Link: https://www.sitepoint.com/using-gdelt-2-with-php-to-analyze-the-world/

PHP-GTK Community Site:
World map of PHP-GTK developers
Jan 28, 2009 @ 13:55:33

The PHP-GTK Community site has launched a new service to help PHP-GTKers out there find out other developers that might be in their area - a world map (based on Google maps) of other PHP-GTK developers around the world.

I reviewed the coordinates given by existing members and noticed a good number had visibly inverted latitude and longitude; so I inverted them again to place them where it appeared to make more sense (are there really PHP-GTK devs in the middle of the pacific, or near the South pole ?). So you may want to double-check your coordinates to make sure the values are correct, because it's likely I've not found every error.

He's also asking for the Brasil PHP-GTK community to include their information in the map as well as a request for anyone out there that might want to make a "prettier" icon for showing the developers on the map.

tagged: world map phpgtk developer location brasil latitude longitude

Link:

Community News:
ElePHPant World Tour '08 Winners!
Jan 16, 2009 @ 13:54:38

Cal Evans and Ivo Jansch have officially announced the winners of the ElePHPant Would Tour competition:

First, many thanks to all the participants. Thank you to Zend, Adobe, php|architect and Ibuildings for providing prizes. Thank you to phpwomen.org for being out judges. Thank you to Damien Seguy for creating the elePHPants. Thank you most of all the the PHP community for being such a fun-loving bunch of nuts.

And the winners are:

tagged: elephpant world tour ewt08 contest winners

Link:

ElePHPant World Tour:
The Elephpant World Tour 2008 is done!
Jan 08, 2009 @ 19:43:14

With the passing of the end of 2008, another thing has come to a close - the contest being held for the best elePHPant photo submission at the ElePHPant World Tour. In this new post they talk about the contest and some of the prizes the winners (first, second and third places) will win.

2008 is over, which means the Elephpant World Tour is coming to an end! The contest that started in September got over 240 entries! That is a whopping 60 elephpant pictures a month. The PHPWomen, who we managed to convince to be the judges for the contest, are now going to sift through all the posts and select 3 winners

Prizes include subscriptions to php|architect magazine, a copy of Zend Studio Professional, a ticket to the Dutch PHP Conference and a license key for the Flex Builder Professional software (from Adobe).

Stay tuned for the list of winners when they're posted!

tagged: elephpant world tour ewt08 contest prize phpwomen judge

Link:

Cal Evans' Blog:
ewt08 (elePHPant World Tour 2008)
Sep 09, 2008 @ 14:33:35

Cal Evans and Ivo Jansch have started up a bit of a contest for those owners of elePHPants out there - the elePHPant World Tour (ewt08):

Here's the basic premise. It seems obvious that elePHPants love to travel. Equally obvious is the fact that a lot of PHP developers love to take pictures. So, let's combine the two. If you spot an elePHPant while traveling, like near a landmark, or making it's way through the airport, snap a picture. Upload it to flickr and tag it with ewt08. Thanks in no small part to a bit of Web 2.0 magic and Wordpress, we'll steal the picture from flickr and post it on the blog.

In January of 2009 the PHP Women group will take a look at all of the photos and pick the best ones. There's multiple prizes so far including a copy of Zend Studio Professional and admission to the Dutch PHP Conference '09 (check out the about page for more).

tagged: elephpant world tour ewt08 flickr photo travel

Link:

Hasin Hayder's Blog:
WorldTimeEngine - How about making your own in PHP?
Mar 10, 2008 @ 16:17:00

Hasin Hayder has posted an example of a "world time search" he's worked up that uses the geonames.org and Yahoo! developer APIs to pin down the time at any given location.

I recently came by this site WorldTimeEngine where users can search the local time of any place using the name, street address or just latitude and longitude. Since that time I was thinking how easily you can make your own. As long there are some good people over there (For Geocoding API) - its a not a big deal, you know?

His script pulls the location of the place (latitude/longitude) from the Yahoo! geocoding API and passes that back into the geonames web service to get the local time. The result is an array with the lat/long, address you submitted and the time output in a standard string.

tagged: world time engine example yahoo api webservice geonames

Link:

Lukas Smith's Blog:
Its the end of the world as we know it.
Jul 26, 2007 @ 13:44:00

In a post from Lukas Smith, he gives responses to some of the questions/comments people have to say about PHP, specifically in how it's related to Java.

Whenever someone asks me why PHP is more "agile" than Java, I tell them that in PHP you can break most of the rules your comp sci course told you about and get away with it. Of course this means that you need PHP developers to constantly clean up their code.

He talks about rules for developing in PHP, one being not to change a method so make it incompatible with its parent. He recommends one way to avoid this - the E_STRICT warning to protect against possible conflicts and issues (the same kind of functionality in PHP6 is in E_FATAL though).

Please, lets get the sense back here. Lets not make things that are not fatal an E_FATAL. Lets use E_STRICT for the pedantic, lets add a E_DEPRECATED for all things deprecated. Lets not kill what makes PHP more agile than those other languages that think they know what I should be spending my time on.
tagged: end world estrict efatal php5 php6 method parent child end world estrict efatal php5 php6 method parent child

Link:

Lukas Smith's Blog:
Its the end of the world as we know it.
Jul 26, 2007 @ 13:44:00

In a post from Lukas Smith, he gives responses to some of the questions/comments people have to say about PHP, specifically in how it's related to Java.

Whenever someone asks me why PHP is more "agile" than Java, I tell them that in PHP you can break most of the rules your comp sci course told you about and get away with it. Of course this means that you need PHP developers to constantly clean up their code.

He talks about rules for developing in PHP, one being not to change a method so make it incompatible with its parent. He recommends one way to avoid this - the E_STRICT warning to protect against possible conflicts and issues (the same kind of functionality in PHP6 is in E_FATAL though).

Please, lets get the sense back here. Lets not make things that are not fatal an E_FATAL. Lets use E_STRICT for the pedantic, lets add a E_DEPRECATED for all things deprecated. Lets not kill what makes PHP more agile than those other languages that think they know what I should be spending my time on.
tagged: end world estrict efatal php5 php6 method parent child end world estrict efatal php5 php6 method parent child

Link:

Jacob Santos' Blog:
Multitasking in PHP
Aug 19, 2006 @ 20:23:43

In his latest blog post, Jacob Santos takes a look at a common request PHP developers hit after a while - is it possible to multitask processes/actions in php?

The ability to run two or more commands in parallel is totally sexy, but the Web is a different playing field and it doesn’t make complete sense.

PHP loses control, once the output is sent and the connection is closed. Multithreading would probably make sense in streaming, but PHP already handles that for you where it makes sense for the function. Furthermore, mulithreading has its purpose in applications that continue to run and not something that closes and cleans up everything after the last command is issued.

He continues talking more about what multitasking is, a more real life example, the goods, the bads, and some of the issues that can come along with it. Finally, he suggests a feature to be added to the core of PHP - an "internal multitasking mechanism" to help aid these kinds of processes.

tagged: multitasking common questions real world good bad multitasking common questions real world good bad

Link:

Jacob Santos' Blog:
Multitasking in PHP
Aug 19, 2006 @ 20:23:43

In his latest blog post, Jacob Santos takes a look at a common request PHP developers hit after a while - is it possible to multitask processes/actions in php?

The ability to run two or more commands in parallel is totally sexy, but the Web is a different playing field and it doesn’t make complete sense.

PHP loses control, once the output is sent and the connection is closed. Multithreading would probably make sense in streaming, but PHP already handles that for you where it makes sense for the function. Furthermore, mulithreading has its purpose in applications that continue to run and not something that closes and cleans up everything after the last command is issued.

He continues talking more about what multitasking is, a more real life example, the goods, the bads, and some of the issues that can come along with it. Finally, he suggests a feature to be added to the core of PHP - an "internal multitasking mechanism" to help aid these kinds of processes.

tagged: multitasking common questions real world good bad multitasking common questions real world good bad

Link:


Trending Topics: