PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 5281 to 5300 of 6889

Get a preview of the next Midgard content repository

Get a preview of the next Midgard content repository
Midgard 10.12 was released last week as a developer preview of what is coming in the world of content repositories: MidgardCR 10.12 "Hrungnir" is a technology preview of the third generation of the Midgard Content Repository. It is released to allow developers to gain familiarity with the upcoming Midgard storage APIs and RDF storage. MidgardCR is available as a GObject-oriented C library with language bindings for multiple languages including Python, JavaScript, Scheme and Java through GObject...

Ilia Alshanetsky's Blog: Domain Location Statistics

Ilia Alshanetsky's Blog: Domain Location Statistics
Ilia Alshanetsky has started to gather more and more information about PHP usage on the web as a whole (that was started here) and has been extended with some additional statistics he's done on the location of the domains he's collected.The first step of the process has been resolving all of these domains, which is now complete. The next step is fetching the server information, which began, but will take some time to finish. However, even from the domain revolving data there is a lot of useful data to be...

Rob Allen's Blog: Handling exceptions in a Front Controller plugin

Rob Allen's Blog: Handling exceptions in a Front Controller plugin
Rob Allen has another Zend Framework-themed post to his blog today looking at handling exceptions in front controllers a bit more correctly than they're currently treated.If you have a Zend Framework Front Controller plugin which throws an exception, then the action is still executed and then the error action is then called, so that the displayed output shows two actions rendered, with two layouts also rendered. This is almost certainly not what you want or what you expected.He points out the more...

Kevin Schroeder's Blog: An Introduction to SimpleCloud (Series)

Kevin Schroeder's Blog: An Introduction to SimpleCloud (Series)
Kevin Schroeder has released a series of blog posts based on a webinar he did for Zend about using the SimpleCloud API to work with cloud services on multiple platforms seamlessly.The Simple Cloud API brings cloud technologies to PHP and the PHPilosophy to the cloud, starting with common interfaces for three cloud application services: file Storage Services, document Storage Services, simple Queue Services. You can start writing scalable, highly available, and resilient cloud applications that are...

Content With Style: buggy behaviour of parent:: in PHP 5.3.3

Content With Style: buggy behaviour of parent:: in PHP 5.3.3
On the Content with Style blog today they take a look at some buggy functionality with parent:: they've found in the latest version of PHP, 5.3.3.So, this app I hadn't been looking at in a few months did not work at all. I traced the bug down to a method that itself called a parent method. The parent only contains __call and __callStatic methods, and for some reason __callStatic was called, although the class it was called from was an object instance.After using some sample code from the PHP manual, they...

Lorna Mitchell's Blog: Preparing for ZCE 5.3

Lorna Mitchell's Blog: Preparing for ZCE 5.3
Following up on a previous post about taking the Zend Certified Engineer exam (5.3 version), Lorna Mitchell has posted some details about how she prepared for (and passed) the test.In the last few weeks I've both passed the certificate myself and also taught Zend's certification training course as a classroom course at NTI Leeds. I thought I'd share my top tips for preparing for taking the ZCE - getting to the standard, last-minute preparations, and also some tips for surviving the day itself...

Preparing for ZCE 5.3

Preparing for ZCE 5.3
Recently I have been getting to grips with the ZCE since it was updated to take account of PHP 5.3. In the last few weeks I've both passed the certificate myself and also taught Zend's certification training course as a classroom course at NTI Leeds. I thought I'd share my top tips for preparing for taking the ZCE - getting to the standard, last-minute preparations, and also some tips for surviving the day itself (disclaimer: everyone sitting the ZCE signs a declaration not to disclose the contents of...

Stop using SQL, then

Stop using SQL, then
From yesterday's PHP Advent article: PHP has been around nearly as long as there has been a Web to develop for, but it evolves constantly and is a modern programming language by almost any definition. Sure, it might not suit hipsters who only enjoy bands when they can say aoyou probably have not heard of them; they only formed tomorrow,a but it is not your granddad's programming language. Sadly, web development often also involves SQL, and that is your granddad's programming language. SQL, and the stored...

Big Data

Big Data
Big data, data science, analytics. These are some of the hottest buzzwords in tech right now. Five years ago, the boasting rights went to the geek with the largest number of users: these days he with the biggest data wins. There are a number of approaches to dealing with vast quantities of data, but one of the best known is Apache Hadoop. Hadoop is a toolkit for managing large data sets, based originally on the Google whitepapers about MapReduce and the Google File System. For Socorro, the Mozilla crash...

Domain Location Statistics

Domain Location Statistics
I recently re-started the process or aggregating PHP usage data and first sample of small dataset (about 10 million domains) has been the subject of my PHP Advent article. Now, I've started the process of collecting the data on the full data set which comprises of 124 million domains that represent the entirety of .com, .net, .biz, .info, .us, .sk and .org TLDs. The first step of the process has been resolving all of these domains, which is now complete. The next step is fetching the server information,...

magic __get and __set style?

magic __get and __set style?
For a long time I've held that __get and __set in PHP were not all that hot A- mostly because it's solely error handling. AThere's no way to deal invoke __get or __set behaviour for properties that are defined on a class. AThat's sort of a beef for another post (I'd started an RFC some time ago on trying to extend that behaviour to defined properties as well as undefined, but didn't finish it, life got in the way, and various other reasons - again, perhaps for another day). For those who insist on using...

Zend Framework: Writing an IN-Clause with Zend_Db

Zend Framework: Writing an IN-Clause with Zend_Db
I'm currently running a little database analysis to see how many of our users might be affected by Gawker's breach of security the other week. Since we use Zend Framework, Zend_Db is our weapon of choice. Running the queries I noticed, that Zend_Db doesn't seem to support an IN-clause with a straight fetchAll().The IN-clause is only supported when I wrap my statement with Zend_Db_Select, which is something I rarely do. Part of the reason is that I still don't feel comfortable writing my SQL in a DSL...

ResolutionFinder.org gets a Whole Lotta Love

ResolutionFinder.org gets a Whole Lotta Love
Back when we first launched ResolutionFinder.org we of course already had many ideas for improvements. This is now the first big push to add these to the site. Of course since then we have even more ideas, but this is still a big jump forward. The main thing we added was the ability to not only search for clauses (aka sections within UN documents), but also documents themselves. Here I was hoping to be able to use the patches for FieldCollapsing for solr, but it turns out they are not yet ready for...

The Ghost of Christmas Past

The Ghost of Christmas Past
PHP has been around nearly as long as there has been a Web to develop for, but it evolves constantly and is a modern programming language by almost any definition. Sure, it might not suit hipsters who only enjoy bands when they can say aoyou probably have not heard of them; they only formed tomorrow,a but it is not your granddad's programming language. Sadly, web development often also involves SQL, and that is your granddad's programming language. SQL, and the stored procedure languages you are most...

Text and Media Files

Text and Media Files
With a team of developers, I recently built a mission-critical web app that relied heavily upon the manipulation of files. I'd like to give you a tour of the tools we used for media conversion, PDF generation, and JS minification. PHP functionsYou can get the entire content of a file using file_get_contents($filename). Similarly, you can write the entire contents of a file using file_put_contents($filename, $contents). There are many more useful filesystem functions in the manual.Command lineA lot of...

SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit

SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit
On SitePoint there's a new tutorial that introduces you to some of the basics of unit testing your PHP application with the help of the popular testing tool PHPUnit. (Disclaimer: I am the author of this article).It's a familiar situation: you've been developing on an application for hours and you feel like you've been going round in circles. You fix one bug and another pops up. [...] You've been there, right? You've had these same frustrations with all your applications, and have sat back and thought...

Brian Swan's Blog: Video Tour of PHP Manager for IIS

Brian Swan's Blog: Video Tour of PHP Manager for IIS
In this new post to his blog today Brian Swan includes a video that's perfect for anyone wanting to know more about the PHP Manager for IIS but didn't have the time to get into it.Last week, Ruslan Yakushev announced the release of the 1.1 version of the PHP Manager for IIS. I thought a tour of the PHP Manager functionality might work best in video format. I'd be interested learning what you think of the PHP Manager itself, but also in knowing what you think of the video format.He covers me of the basics...

Intermediate PHP

Intermediate PHP
At last night's Burlington, Vermont PHP Users Group meeting I gave an Intermediate PHP talk where I discussed working with arrays, functions, and objects. You can view the presentation on SlideShare or see the code examples on GitHub. A big thanks to Matthew Weier O'Phinney for helping to put together the presentation (unfortunately he was not able to make it to the meeting due to unforeseen circumstances) and to Office Squared for hosting the meeting. The slides are licensed under a Creative Commons...

Christoph Dorn's Blog: FirePHP on Magenting

Christoph Dorn's Blog: FirePHP on Magenting
Christoph Dorn has a new post to his blog today about using the FirePHP extension for Firefox/FireBug to help debug applications running on the Magenting service.FirePHP can be useful when debugging remote PHP applications on shared or dedicated servers. This tutorial illustrates how to setup FirePHP 1.0 on Magenting which is a managed Magento hosting service. Go to http://magenting.com/ and create an account. This tutorial was prepared by using a Spark account, but it should work just the same with all...

Ibuildings techPortal: lessphp: PHP implementation of Less CSS

Ibuildings techPortal: lessphp: PHP implementation of Less CSS
On the Ibuildings techPortal today there's a new tutorial from Robert Raszczynski with his look at the lessphp project - a native PHP implementation of the LESS CSS framework.In a nutshell, Less CSS is a tool that lets you simplify your CSS style sheet and allows you to extend limited CSS functionality by introducing variables, mixins, operations and nested rules. The original implementation is written in Ruby; however, there is a PHP solution based on LESS CSS called lessphp.He mentions the good and the...

Latest PHP Tweets