PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2821 to 2840 of 6889

State of the Symfony2 CMF

State of the Symfony2 CMF
People keep asking me when the CMF will be ready. Or they say that they will join once its further along because they think its too far away to be relevant for their clients today. So the good news is that Liip already has a huge client using CMF components. The combination of Jackalope with Jackrabbit and the PHPCR ODM (provides a similar API than the other Doctrine ORM/ODM) is ready for prime time. There are also already a fair number of components in different state that are close to be finished,...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Amazon Mechanical Turk PHP REST API GD2 Imaging smrtClass Configs Autoloader Power Spawn Drawing

Executing MySQL queries with PHP mysqli

Executing MySQL queries with PHP mysqli
The mysqli quickstart series is coming to an end. Today, the post is about non-prepared statements. You may also want to check out the following related blog posts: Using MySQL prepared statements with PHP mysqli Using MySQL multiple statements with PHP mysqli Using MySQL stored procedures with PHP mysqli Using mysqli to execute statements Statements can be executed by help of the mysqli_query(), mysqli_real_query() and mysqli_multi_query() function. The mysqli_query() function is the most...

Slawek Lukasiewicz's Blog: PHP application diagnostics - Memtrack

Slawek Lukasiewicz's Blog: PHP application diagnostics - Memtrack
Slawek Lukasiewicz has posted about a handy tool that can be used to track memory consumption and performance in your PHP application - memtrack.Application profiling can help us determine bottlenecks and possible problems during development. But sometimes we also need to diagnose problems in production environment. Frequent performance problems are connected with functions and methods using too much memory.The tool allows you to set up thresholds for memory consumption and, if the scripts exceeds it,...

Till Klampaeckel's Blog: PHAR and FreeBSD

Till Klampaeckel's Blog: PHAR and FreeBSD
Till Klampaeckel has a new post about replacing the now-missing phar port on FreeBSD installations with a custom compile work-around. I noticed that archivers/pecl-phar vanished from the ports tree on one of my FreeBSD servers. Problem? Reasons to remove the port were: the port is unmaintained, the port was based on the outdated phar extension from pec and that phar (in pecl) contains open security issues. The simple solution is to create a new port which of course will use the phar which is bundled in...

Matthew Weier O'Phinney's Blog: Getting started writing ZF2 modules

Matthew Weier O'Phinney's Blog: Getting started writing ZF2 modules
Matthew Weier O'Phinney has posted a guide to modules in ZF2 - some helpful hints to get you started writing modules for the Zend Framework 2 to fit into the new architecture.During ZendCon this year, we released 2.0.0beta1 of Zend Framework. The key story in the release is the creation of a new MVC layer, and to sweeten the story, the addition of a modular application architecture. "Modular? What's that mean?" For ZF2, "modular" means that your application is built of one or more "modules". In a lexicon...

PHPMaster.com: The Importance of Standards

PHPMaster.com: The Importance of Standards
In a new article today on PHPMaster.com Robert Mariotti takes a look at standards and how important they can be when developing applications (both in following them and defining them correctly). It's not specifically targeted at PHP developers, but it does give some good food for thought.As a long-time programmer, often with a staff of other programmers to watch over, I learned early in my career how important enforcing programming standards is in contributing to the overall success of a project. Not...

php|architect: Geolocation: Easier Than It Looks

php|architect: Geolocation: Easier Than It Looks
On the php|architect site Jeremy Kendall has a new article looking at geolocation in PHP and how, despite some comments in the past about its difficulty, some more recent tools make it relatively simple.Have you ever wanted to add location-aware content to your web applications? Would you believe me if I told you it was dead easy, and you could be up and running in about 10 minutes? The first thing you want to do is use someone else's work. Geolocation is a solved problem; there's no need to roll your...

Community News: Latest PECL Releases for 11.08.2011

Community News: Latest PECL Releases for 11.08.2011
Latest PECL Releases: timezonedb 2011.14 mysqlnd_ms 1.1.2

Using MySQL with PHP mysqli: Connections, Options, Pooling

Using MySQL with PHP mysqli: Connections, Options, Pooling
Opening a database connection is a boring tasks. But do you know how defaults are determined, if values are omitted? Or, did you know there are two flavours of persistent connections in mysqli? Of course you, as a german reader, know it. I blogged about it in 2009 over at phphatesme.com (Nimmer Arger mit den Persistenten Verbindungen von MySQL?) a Database connections with mysqli The MySQL server supports the use of different transport layers for connections. Connections use TCP/IP, Unix domain...

MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)

MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)
Or madness in general. So as you may know, I've started using PHPStorm to work locally. I decided to dust off an old SSH2 wrapper I wrote and play with how PHPStorm uses PHPUnit and does refactoring. I knew that I would have to install the extension via PECL and was like, "Oh it can't be that bad to do it through MAMP PRO" and as you may have guessed, I sealed my own fate for a couple hours. One thing I can say is that, even though I use a convenient app like MAMP PRO to set up my local development...

Community News: EngineYard Hosts "Future of PHP" Live Panel - "PEAR & Pyrus"

Community News: EngineYard Hosts "Future of PHP" Live Panel - "PEAR & Pyrus"
EngineYard, a company that recently merged with the PHP platform as a service provider Orchestra.io, has a new live panel podcast about the Future of PHP, specifically involving PEAR and Pyrus.If you are a PHP developer using PEAR and Pyrus, we invite you to join us this week as we explore the future of PEAR and Pyrus. We'll be discussing issues such as where PEAR/Pyrus will be going in the next few years, what obstacles may be on the horizon, and how they're going to get where they're going.The live...

PEAR Blog: PEAR Development on Github

PEAR Blog: PEAR Development on Github
On the PEAR blog today it's been pointed out that many PEAR packages are moving to github as their standard place for development and repositories under the pear and pear2 accounts are available for anyone wanting to make the move.While the existing PEAR packages will continue to use the pear.php.net distribution and bug tracking capabilities; it's never been easier to contribute to a PEAR package - simply fork; add your changes and send us a pull request. If your preferred packages aren't yet on github,...

Getting started writing ZF2 modules

During ZendCon this year, we released 2.0.0beta1 of Zend Framework. The key story in the release is the creation of a new MVC layer, and to sweeten the story, the addition of a modular application architecture. "Modular? What's that mean?" For ZF2, "modular" means that your application is built of one or more "modules". In a lexicon agreed upon during our IRC meetings, a module is a collection of code and other files that solves a specific atomic problem of the application or website. As an...

PHPMaster.com: Code Templates, AutoHotKey, and Ditto: Speeding Up Development

PHPMaster.com: Code Templates, AutoHotKey, and Ditto: Speeding Up Development
On PHPMaster.com today they share a list of helpful tools and tricks that you can apply not only to your PHP development, but programming in general. They highlight code templates, using hotkeys and Ditto.There are also other helpful pieces of software such as libraries, code snippets, and third party applications. In this article I'll show you how I use a feature built into NetBeans along with two other applications to increase my productivity when programming on Windows. These tips and techniques offer...

Ed Finkler's Blog: Building a Tumblelog with Gimme Bar and PHP

Ed Finkler's Blog: Building a Tumblelog with Gimme Bar and PHP
Ed Finkler has a new post today showing how he's created a tumbleblog using the Gimmie Bar API and backend as a source for the posts. For the curious, the code for his simple blog can be found here.One of the coolest things about working on Gimme Bar has been the opportunity to build a platform. While most folks interact with our service via the web site, the site is just one application built on top of the Gimme Bar content collection and curation system. Our web site interacts with the system via our...

Derick Rethans' Blog: Multiple PHP versions set-up

Derick Rethans' Blog: Multiple PHP versions set-up
Derick Rethans has a new post today looking at a method for setting up multiple PHP versions on the same machine and switch between them with a little help from some simple bash scripts.For many of my projects (both hobby and commercial) I need to support many different PHP configurations. Not only just different PHP versions, but also debug builds, ZTS builds and 32-bit builds. In order to be able to test and build extensions against all those different PHP configurations I have adopted a simple method...

Davey Shafik's Blog: Faster Arrays

Davey Shafik's Blog: Faster Arrays
In this new post to his blog Davey Shafik looks at an alternative to the traditional arrays most scripts use - something a little faster and more specific: SplFixedArray, part of the Standard PHP Library included with every release.The SplFixedArray class provides a super-fast, fixed size array implementation. There are some limitations however, first you must use numeric keys and secondly you cannot use anonymous assignment (i.e. $array[] = 'value';). You'll notice one requirement was missing, that it...

Community News: Latest PEAR Releases for 11.07.2011

Community News: Latest PEAR Releases for 11.07.2011
Latest PEAR Releases: Services_ProjectHoneyPot 0.6.0 PHP_CodeSniffer 1.3.1

Faster Arrays

Faster Arrays
Arrays, long considered the work horse of PHP have one flaw: they can be incredibly slow. There is however an alternative -Aat least, for a small subset of use cases. SplFixedArray. You use SplFixedArray like so: The SplFixedArray class provides a super-fast, fixed size array implementation. There are some limitations however, first you must use numeric keys and secondly you cannot use anonymous assignment (i.e. $array[] = 'value';). You'll notice one requirement was missing, that it should have a fixed...

Latest PHP Tweets