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

Johannes Schlüter:
PHP 5.5 is out, what's up with 5.4 and 5.3?
June 24, 2013 @ 09:25:47

Johannes Schlüter has a new post for those wondering what's going to happen to PHP 5.3 and 5.4 now that PHP 5.5 has been released.

Yay, finally we released PHP 5.5, which is a new big release for PHP. In preparation for this I yesterday sent out a mail to the PHP core developers stating that the "PHP-5.3 BRANCH IS CLOSED NOW" [...] What this means for users of PHP is that they can continue using PHP 5.3 and when upgrades come they are very low risk of breaking anything (we always try not to break anything, but any person's bug might be another person's feature) so they should be applicable easily and applied fast.

So, PHP 5.3 users can upgrade in the 5.3.x series without having to worry too much about breakage. PHP 5.4 users should be able to easily upgrade to 5.5 without many issues too: "PHP 5.5 also mostly uses the same code as 5.4 with a few extra features."

0 comments voice your opinion now!
language release upgrade older version status

Link: http://schlueters.de/blog/archives/173-PHP-5.5-is-out,-whats-up-with-5.4-and-5.3.html

PHPMaster.com:
REST - Can You do More than Spell It? Part 4
May 21, 2012 @ 08:44:26

PHPMaster.com has posted the latest tutorial in their series covering RESTful APIS - part four of "REST - Can you do More than Spell it?" In this latest part of the series, they focus on something very key to RESTful services, the HTTP spec (and headers).

We're getting close to the end now, and the only thing remaining is to discuss a little more about the protocol you'll most likely use in any RESTful application that you write. Because HTTP is so often used with REST, that's the protocol I'd like to focus on.

He goes through the structure of a typical (raw) HTTP header and talks about some of the more common headers and what actions/settings they represent. He includes examples of setting headers (with header, naturally) and a curl example showing how to set the request headers. The tutorial is finished off with a brief mention of custom HTTP headers and the the good and bad that comes with them.

0 comments voice your opinion now!
rest api tutorial series http spec protocol status header


PHPMaster.com:
Zend Job Queue
January 13, 2012 @ 08:37:31

In this most recent post to PHPMaster.com Alex Stetsenko takes a look at the Zend Job Queue functionality, a part of the Zend Server installation. He talks about some basic usage to make HTTP requests and a more extended example showing report generation.

Web applications usually follow a synchronous communication model. However, non-interactive and long-running tasks (such as report generation) are better suited for asynchronous execution. One way to off-load tasks to run at a later time, or even on a different server, is use the Job Queue module available as a part of Zend Server 5 (though not as part of the Community Edition). Job Queue allows job scheduling based on time, priority, and even dependencies

In his two examples, he shows the code involved to create a new Queue object and define a HttpJob in it. The first just calls a "sample.php" script that's exposed as a part of your external-facing site and shows how you can get the current status of the job. The more advanced example shows a call to a "report.php" script with a set of options defining things like "type", "length" and "priority". He also points out some other options that can do similar things like Gearman, NodeJs and RabbitMQ.

0 comments voice your opinion now!
zend job queue zendeserver tutorial task status


PHPBuilder.com:
Harness the Scripting Power of PHP and cURL to Update Facebook
February 16, 2011 @ 13:30:19

On PHPBuilder.com today there's a new article from Marc Plotz looking at how you can use PHP and cURL with Facebook to update your status.

You probably know that cURL is a wonderful tool for extracting data from a Web page -- that's a given if you are a developer worth your salt. However, in this article, I want to show you how to use cURL to do things for you. We will start by exploring cURL in detail and then move on to use a very cool script to update our Facebook status.

He introduces cURL for those that aren't familiar with it already (including how to tell if it's installed) and some basic code to show a GET request on a remote file. Things get a little more complicated from there - you'll need to set up some cookies for Facebook, use some regular expression matching to find the form to submit to and send the POST data correctly for the update.

0 comments voice your opinion now!
curl tutorial script facebook update status


PEAR Blog:
PEAR in August
August 16, 2010 @ 08:32:56

On the PEAR blog there's a new post updating you on some of the happenings with the PHP packaging tool recently.

We've been fairly quiet, launching pear2 and pyrus into the line up, welcoming new faces to the QA team, Jesus Espino, and getting ready to call an election for the new pear group.

They also mention several package releases (including updates to Net_DNS and Services_Twitter) and a call for contributions from anyone out there by working on deprecated code, unit tests or even just bug reports.

0 comments voice your opinion now!
pear package update status august


NETTUTS.com:
Diving into the Twitter API
March 30, 2010 @ 08:57:16

In a new tutorial from NETTUTS.com today Siddharth gives you a guided tour through some of the Twitter API and includes code - Javascript and PHP (using cURL) - you can use to access it.

As we move towards the social web and mashups, a good API is not a nice addition anymore: it is downright necessary. And remember, too much abstraction is never a good thing. While there are a number of API kits out there to simplify working with the API in question, wouldn't it be cool to know what is actually going on under the hood? Wouldn't it be exciting to deconstruct the actual voodoo going on between the kit and the API? Yeah, I thought so!

He covers the three different Twitter APIs, the REST, search and stream APIs but focuses on using the REST method to pull out the information you need. The code examples show you how to get your own latest status, update your current status and use the search.twitter.com site to find tweets matching your search term and pull them back as a JSON message.

0 comments voice your opinion now!
twitter api tutorial status javascript curl


Matt Curry's Blog:
Adding Ajax Panels to the CakePHP Status Plugin
August 18, 2009 @ 07:50:29

Matt Curry has this recent post looking at the CakePHP Status plugin he's developed and how to add in a custom Ajax-powered panel.

Last time we made a simple panel that showed the last 10 users that signed up for you web app. [...] This time we'll do a panel that shows the number of sign ups based on a time frame. We'll add a drop down that let's you select day, week, month or year and it'll show a breakdown of new users for that period. The updates will use ajax.

He includes the code to create the element, set up the javascript to interface with the backend and the PHP to create the controller for it to interface with. His example grabs the most recent signups from his Users information.

1 comment voice your opinion now!
ajax panel cakephp status plugin


Matt Curry's Blog:
Adding Custom Panels to the CakePHP Status Plugin
August 10, 2009 @ 09:46:59

Matt Curry has a new post looking at adding additional functionality (custom panels) to his CakePHP status dashboard application.

There are two different ways to add a panel '" using requestAction or Ajax. The general rule is if the panel is pretty fast to load and content is static use requestAction. If the panel takes some time or you want to be able to interact with it then use Ajax. For example, the logs panel uses requestAction since it's pretty quick to grab the log entries and you really don't need to interact with them. The Google Analytics panel, on the other hand, takes a few seconds to query the API and has options to change the timeframe, so it uses Ajax.

New panels can either be made as a part of the application or as plugins and bundled for easy adding and removing. He shows how to write the controller and the element to interface with the CakePHP code. His example grabs the latest users created on his application.

0 comments voice your opinion now!
cakephp status plugin custom


Zoe Slattery's Blog:
PHP TestFest - one more month to go!
June 01, 2009 @ 12:05:12

Zoe Slattery has posted an update about the TestFest events happening around the world and the contributions they've been making to the overall cause of getting PHP code coverage as complete as possible.

Groups from all over the world have contributed 554 new tests for PHP since April 1st 2009. Of these, 327 have already been moved into PHP's CVS (thanks Felipe!). The results of running tests on a Linux 32 bit platform can be seen here (sorry about the colour scheme), the user groups who have contributed are also listed. We also run the tests on a 64 bit Linux platform here, but this only runs PHP5.3 and PHP5.2.

She's also run some complete code coverage tests (after fighting a bit with ccache and lcov) and came up with a two percent increase overall (including a huge jump in the ext/ldap extension's coverage from about nine percent up to almost ninety percent!)

0 comments voice your opinion now!
status codecoverage testfest


Community News:
Debug Bar for Zend Framework - Scienta
March 30, 2009 @ 10:21:48

Joakim Nygard has come up with a debug bar similar to ones found in other frameworks for the Zend Framework - the Scienta ZF debug bar.

The Scienta ZF Debug Bar is a plugin for the Zend Framework for PHP5. It provides useful debug information displayed in a small bar at the bottom of every page. Time spent, memory usage and number of database queries are presented at a glance. Additionally, included files, a listing of available view variables and the complete SQL command of all queries are shown in separate panels (shown configured with 2 database adapters):

You can check out an example setup here [png] and get the full installation instructions and latest downloads from the project's page.

0 comments voice your opinion now!
debug bar status information example install download project



Community Events











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


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

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