PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 6301 to 6320 of 6889

PHANTM Continued

PHANTM Continued
Seven months ago, I mentioned PHANTM, a tool that statically analyzes PHP code in order to detect and report type mismatch. I've actively continued working on it since then, mainly as a research project for EPFL but also as a fun way to occupy my free time. Why check types? This is PHP after all! As you may have read recently on the internals mailing list, types are basically being accused of treason against the spirit of PHP. Gosh! Some of the original minds behind PHP argued that strictly checking for...

Is your project scalable?

Is your project scalable?
I was talking with a friend today about his project. AHe's been brought in to a project where the dev environment is pretty tightly couple with physical machines, there's no good repeatable build process or docs on how to make things work, and many unwritten assumptions that he only finds out after trial and (much) error. It struck me then (and possibly in the past) that the entire way that project is set up is not *scalable*. AScalability is a big buzzword, and it often focuses on performance. AWhile...

Richard Thomas' Blog: Solar Framework Shorts - Controlling form layout

Richard Thomas' Blog: Solar Framework Shorts - Controlling form layout
Richard Thomas has a new "Solar Short" posted to his blog to make life easier using the Solar Framework. This quick spotlight is about controlling the layout of the standard form renderer.Solar's form system is pretty powerful and you realize the full beauty when auto generating forms directly from models but by default it uses a DL/DD/DT list for formatting your labels/inputs. If your not a fan of that formatting you can do something about it.You can define the decorator tags in your framework's...

Pablo Viquez's Blog: MySQL Profiling and Zend Framework

Pablo Viquez's Blog: MySQL Profiling and Zend Framework
Pablo Viquez has a new post to his blog today looking at how to profile the MySQL connections and queries in your Zend Framework application with some built-in tools.You can do profiling on PHP using XDebug or Zend Debugger ad both works beautifully, however what about MySQL? Can you do something similar? The response is yes you can. Now the best part is that you can take advantage of the tools MySQL give you, if you want to take the profiler to a new level.He shows how to use the built-in profiler that...

Mozilla Account Manager

Mozilla Account Manager
For some time now, I've been happily using 1Password to manage all of my online accounts. I really like it and recommend it to all of my friends, but I do have a few reservations: It uses a proprietary format for storing my account information. (Older versions used the Keychain format.) It does not integrate with Mobile Safari or anything that's not a browser (e.g., iTunes). This means browsing on my iPhone or iPad is practically impossible, and my iTunes password has to be easy to type, leaving me...

Chris Hartjes' Blog: Zend_Application and Zend_Acl

Chris Hartjes' Blog: Zend_Application and Zend_Acl
In a new post to his blog today Chris Hartjes looks at some of his thought process when implementing authentication and access control in his Zend Framework applications.One of the more frustrating things about using Zend Framework is that for pretty much any topic, there is always at least 2 ways to accomplish a particular task. For a beginner with the framework, this is a humungous barrier to overcome. When I try to implement something, my first question is no longer "how will I do this" but "where the...

NETTUTS.com: The Newbie's Guide to Test-Driven Development

NETTUTS.com: The Newbie's Guide to Test-Driven Development
On NETTUTS.com today there's a new tutorial to help you get started with effective test-driven development in your PHP applications with SimpleTest.Testing your code is annoying, but the impact of not doing so can be orders of magnitude more annoying! In this article, we'll use test-driven development to write and test our code more effectively.They start with the basics - what test-driven development is, why it's a good idea and how the whole process works to improve your code. They opt for a bit...

Matthew Weier O'Phinney's Blog: Applying FilterIterator to Directory Iteration

Matthew Weier O'Phinney's Blog: Applying FilterIterator to Directory Iteration
New on his blog Matthew Weier O'Phinney has this post looking about using the FilterIterator (from PHP's SPL libraries) to work with (recursive) directory iteration.I'm currently doing research and prototyping for autoloading alternatives in Zend Framework 2.0. One approach I'm looking at involves creating explicit class/file maps; these tend to be much faster than using the include_path, but do require some additional setup. [...] I'm well aware of RecursiveDirectoryIterator, and planned to use that....

It's That Time Again- Announcing August's ZF Bug Hunting Days

It's That Time Again- Announcing August's ZF Bug Hunting Days
Yep, it's the third week of the month again- and you know what that means: Zend Framework Monthly Bughunt! This Thursday, Friday and Saturday of August (the 19th, 20th and 21st 2010), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework.

Ibuildings techPortal: DPCRadio: Technical Debut

Ibuildings techPortal: DPCRadio: Technical Debut
On the Ibuildings techPortal today they've posted the latest podcast in their DPCRadio series - Elizabeth Naramore's presentation on technical debt.Technical debt is something that most project teams or independent developers have to deal with '" we take shortcuts to push out releases, we don't focus on quality, deadlines need to be met, quick fixes slowly become the standard. Whatever the reason, if we don't manage our technical debt (not unlike financial debt), before too long our applications are...

Autoloading Benchmarks

During the past week, I've been looking at different strategies for autoloading in Zend Framework. I've suspected for some time that our class loading strategy might be one source of performance degradation, and wanted to research some different approaches, and compare performance. In this post, I'll outline the approaches I've tried, the benchmarking stategy I applied, and the results of benchmarking each approach. Continue reading "Autoloading Benchmarks"

Matthew Weier O'Phinney talks about "Autoloading Benchmarks"

Matthew Weier O'Phinney talks about "Autoloading Benchmarks"
If you know Matthew Weier O'Phinney (MWOP) then you have probably already read this post. If you don't know him, click on in and I'll give you the low-down.

SitePoint PHP Blog: How to Upload Large Files in PHP

SitePoint PHP Blog: How to Upload Large Files in PHP
On the SitePoint PHP blog today Craig Buckler talks about uploading large files in your PHP application. He points to two other resources - this manual page and this introductory tutorial about handling file uploads to get the ball rolling.One of the most popular uses is image uploads. Your users can submit photographs from a form without resorting to FTP or other convoluted methods. HTML5 and Flash also permit drag and drop, so the operation is likely to become easier as browsers evolve. This is where...

Community News: Latest PECL Releases for 08.17.2010

Community News: Latest PECL Releases for 08.17.2010
Latest PECL Releases: mysqlnd_uh 0.1.0a1 imagick 3.0.1RC1 stomp 1.0.2 timezonedb 2010.11 timezonedb 2010.12

How to Upload Large Files in PHP

How to Upload Large Files in PHP
Uploading a file from a web form in PHP is easy. The online manual provides a Handling File Uploads section, and there are several articles on sitepoint.com, including How To Handle File Uploads With PHP by Kevin Yank. One of the most popular uses is image uploads. Your users can submit photographs from a form without resorting to FTP or other convoluted methods. html5 and Flash also permit drag and drop, so the operation is likely to become easier as browsers evolve. This is where the problems can...

Facebook Engineering Blog: HipHop for PHP: six months later

Facebook Engineering Blog: HipHop for PHP: six months later
On the Facebook Engineering blog there's a new post summarizing the last six months since they released the HipHop tool for PHP along with some of the stats from the time.Since February, the team has made HipHop another 1.8 times faster and all of that code is open source. We've also seen improvements to PHP itself with the additions to PHP's trunk in April being about 10% faster than 5.3.They talk about projects they've worked with (including Drupal and WordPress), community contributions, a first use...

Daniel Jensen's Blog: Database gearman worker in PHP example

Daniel Jensen's Blog: Database gearman worker in PHP example
Daniel Jensen has a new post about using Gearman to do some simple database inserts asynchronously.If you need to do a lot of inserts in your DB with a certain line of order they should be carried out in or with a clean-up script following after the inserts and you don't have to wait for a reply from MySQL, the answer to that problem might be this worker written in PHP for Gearman as an interface for your DB. A MySQL crash or a worker crash will have no impact on your inserts because they will just stay...

Justin Ireland's Blog: Real-Time Embedded User Interfaces Using HTML/CSS/js and Websockets

Justin Ireland's Blog: Real-Time Embedded User Interfaces Using HTML/CSS/js and Websockets
Justin Ireland has posted an article to his blog about creating real-time interfaces for your sites using the combination of HTML, CSS and Javascript to connect to a physical interface on the backend.Physical interfaces such as button panels or remote controls have many disadvantages. Panel controls require a dedicated display for feedback and physical access to a fixed location. IR remote controls offer only one-way communication with limited feedback and can become difficult to manage for multiple...

Bradley Holt's Blog: PHP Users Group Survey

Bradley Holt's Blog: PHP Users Group Survey
In this new post Bradley Holt shares some of the results he found in questioning his local user group about why they would get involved with the user group.This was certainly not a scientific survey and there were only 16 responses, but it still offers some insight that can be useful in planning user group activities. Here are the top reasons...The reasons included things like "learning from peers", "meet the experts" and "finding job opportunities". He graphed the results showing that learning from...

Lorna Mitchell's Blog: CodeigniterCon 2010

Lorna Mitchell's Blog: CodeigniterCon 2010
Lorna Mitchell recently attended the cicon2010 conference in Bristol (a CodeIgniter-centric event) and has written up a summary of her time there.I spent the weekend in Bristol so I could attend cicon2010 - a volunteer-organised first-edition conference around the CodeIgniter PHP Framework. [...] I saw two talks, both of which were actually really good, which is pretty impressive when you're going on stage to a rather fed up audience! Kudos to Kevin Prince and Joel Gascoigne for their talks.She also...

Latest PHP Tweets