PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 5701 to 5720 of 6889

ServerGrove Blog: How to customize the error pages in Symfony2

ServerGrove Blog: How to customize the error pages in Symfony2
On the ServerGrove blog there's a new post showing you how to customize those default error pages that show up in a Symfony2 application when an exception is thrown.The framework produces a very detailed report when in the development environment. However, when you put the application in the production server, you will need to display a user friendly page. Creating a custom page is actually simple. All you need to do is define a controller/action pair that will generate the response. You can either use...

Lukas Smith's Blog: Lets talk about JSON in Symfony2

Lukas Smith's Blog: Lets talk about JSON in Symfony2
Lukas Smith has a new post to his blog looking at some of his experiences with working with JSON in the upcoming version of the Symfony framework (Symfony2), specifically in using the DoctrineUserBundle and load views via JSON.Unfortunately right now there are quite a few issues with taking a 3rd party Bundle which wasn't specifically build to be accessible via JSON. So in the end I build a MultiplexController that can JSON-ify any controller. The name derives from the fact that it also supports calling...

PHP: the 38 characters of the mysqlnd profiler

PHP: the 38 characters of the mysqlnd profiler
Recently I was forced to benchmark a mysqlnd plugin on Windows. X-Debug was no help. It worked flawless on Windows but it can't tell you what goes on inside a PHP user space API call, for example, you will not know how much time mysqli_query() spends reading a result set. Very Sleepy is nice and the latest Microsoft Visual Studio profiler are probably wonderful but any of those external profiling tools did give me too fine-grained information. Also, they are external profiler which means you have to...

Paul Jones' Blog: Comparing Benchmark Tools

Paul Jones' Blog: Comparing Benchmark Tools
Paul Jones has come back around and revisited the benchmarking setup he's created and has rerun some of the baselines on a new, clean EC2 instance and posted the results to his blog. These benchmarks were run using Apache's ab, Acme's http_load and joedog's siege.I thought it might be interesting to see what each of them reports for the baseline "index.html" and "index.php" cases on the new Amazon EC2 setup (using a 64-bit OS on an m1.large instance). The results follow (all are at 10 concurrent users,...

Lorna Mitchell's Blog:

Lorna Mitchell's Blog:
In a quick post to her blog Lorna Mitchell mentions a deprecated method in pecl_http that could cause problems for you down the road - addRawPostData.I'm a big fan of pecl_http, which I use quite often as I work so regularly with APIs and on systems where I can get it installed, it's much nicer than PHP's curl extension. Recently though I've been often seeing output which reads: Function HttpRequest::addRawPostData() is deprecatedThe alternative is to use the "setBody()" method on the HttpRequest object...

Phil Sturgeon's Blog: What happens next?

Phil Sturgeon's Blog: What happens next?
In a response to some of the things said in this post to the CodeIgniter blog, Phil Sturgeon has posted some thoughts of his own about how the company (EllisLab) is currently handling the CodeIgniter framework and what kind of future he sees out there for it.Times have been hard for the developers of CodeIgniter - EllisLab and they have addressed this in a few ways: A spot on the ExpressionEngine Podcast, a few articles explaining the future of EllisLab and ExpressionEngine and how they plan to take...

Speed Up Your Website With PHP Buffer Flushing

Speed Up Your Website With PHP Buffer Flushing
PHP output buffering is normally enabled by default. In older versions of PHP, a string would be sent to your browser every time the interpreter encountered an echo statement or text outside the PHP delimiters. Output buffering makes this process quicker and more efficient. The buffer is essentially a big memory-resident string. When text is output, it's appended to the buffer rather than returned to the browser immediately. The buffer is then aoflusheda, i.e. its contents are transmitted and the string...

Harrie Verveer's Blog: The PHP community: not just about tree hugging geeks

Harrie Verveer's Blog: The PHP community: not just about tree hugging geeks
Harrie Verveer has a new post to his blog today talking about how the PHP community is "not just about tree hugging geeks" and good things about the community that is has to offer companies and developers alike.every once in a while I hear some plea for the great PHP community that makes me a bit nauseous. "Sharing code, knowledge, elePHPants, it's all so fun to share and be part of this great club of lovely people! I share my project with you and you share your project with me. And then we hug!...

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Brandon Savage's Blog: Book Review: PHP Team Development WebReference.com: Review: phpFox, a Social Networking CMS with all the Bells and Whistles Community News: Appcelerator Now Includes PHP Support Giorgio Sironi's Blog: Php login with Zend_Auth Symfony Blog: Why will Symfony 2.0 finally use PHP 5.3? PHPEveryDay.com: Zend Framework Basic Tutorial PHP 10.0 Blog: Zend Server PHP sources Web Development Blog: Integrate your MailChimp...

Doing the Twitter OAuth Mambo is easy with Zend_Oath

Doing the Twitter OAuth Mambo is easy with Zend_Oath
Joey Rivera posted a tutorial on his blog recently discussing how to authenticate with the Twitter API using Zend_Oauth. Click on in for all the details, facts and probably an opinion or two.

Accelerate scripts running multiple tasks in parallel using asynchronous programming: Unusual Site Speedup Techniques: Part 3

Accelerate scripts running multiple tasks in parallel using asynchronous programming: Unusual Site Speedup Techniques: Part 3
Accelerate scripts running multiple tasks in parallel using asynchronous programming: Unusual Site Speedup Techniques: Part 3 By Manuel Lemos Asynchronous programming allows developers to write faster code by running multiple parallel tasks at the same time. This contrasts with the traditional synchronous programming on which programs perform a task and do nothing else besides waiting for the task to finish before proceeding to the next task. This article explains better what is asynchronous...

Deprecated Methods in Pecl_Http

Deprecated Methods in Pecl_Http
I'm a big fan of pecl_http, which I use quite often as I work so regularly with APIs and on systems where I can get it installed, it's much nicer than PHP's curl extension. Recently though I've been often seeing output which reads: Function HttpRequest::addRawPostData() is deprecated It isn't obvious from the PHP manual page what I ought to do instead, however further inspection shows that it is recommended to use setBody() instead. This can be used in exactly the same way, and my code seems to work...

Boycott NuSphere. They are spammy spammers

Boycott NuSphere. They are spammy spammers
It took a lot for me to finally write this post. I tweeted about it a while back. It seems NuSphere needs more business. They have resorted to spamming people to promote their PhpED product. I have gotten emails to email addresses that:I know are not on any mailing listAre on web pages as plain mailto: anchor tags for good reasons.In one case, it was the security@phorum.org address we have on the site to make it easy for people to report any security related issues. We get all kind of spam because of...

Test.ical.ly Blog: What is a good software architecture in a nutshell?

Test.ical.ly Blog: What is a good software architecture in a nutshell?
On the Test.ical.ly blog there's a recent post asking about good software architecture and how you could define it simply without having to muck around with all of the details it tends to conjure up.What is a good architecture and why are there apparently two opposing trenches supporting quality on the one side and speed of development on the other side? After having had enough time to think about this whilst flying to Spain I came to the conclusion that Nils question whether it would be better to start...

Brooklyn Beta

Brooklyn Beta
Last week, many of the Web's most influential developers and designers converged on a seemingly unremarkable art space (nAe factory for novelty invisible dog leashes) in Brooklyn for the first of what I hope will become a long-standing conference tradition: Brooklyn Beta. Despite having personally helped organize several other conferences in the past, Brooklyn Beta has easily earned a spot at the top of my list of favourite events in my career. I've been involved with planning this event nearly since...

LogicPool.com: List of PHP and MySQL Code Generators

LogicPool.com: List of PHP and MySQL Code Generators
On the LogicPool site there's a new post with a list of PHP+MySQL code generators you can use if there's not a specific framework involved in your application (most of those come with code generation tools already).Some of these tools can rapidly build a fully functional application, but there's more to most useful applications than simply displaying a list of fields for users to fill out and viewing the results from an admin only accessible area. Most applications will need tweaks that can be small to...

ZendCon 2010!

As I write this, ZendCon begins in less than a week. I have the honor and pleasure to be speaking there again, for the sixth year running. Continue reading "ZendCon 2010!"

Comparing Benchmark Tools

Comparing Benchmark Tools
As I noted last week, I have moved my framework benchmarking project to GitHub. As part of the move, I updated the project to allow benchmarking using any of three tools: Acme http_load, Apache ab, or Joedog siege. (For reference, the old project will remain at GoogleCode.) I thought it might be interesting to see [...]

Zend Framework application's PHPUnit suite 3x faster

Zend Framework application's PHPUnit suite 3x faster
My regular readers may have already noticed I don't even dare writing code without TDD/BDD-ing it from left to right. In my Zend Framework-based project, we currently have 600+ PHPUnit test cases, most of them for models and controllers, but quite some also for view helpers, bootstrap and even some views. The whole suite is taking around 90 seconds to run on my machine against a MySQL database (modelled with Zend_Db* in an active record/table data gateway manner).In this post I'll be showing how I...

CodeIgniter.com Blog: What's Happening Now?

CodeIgniter.com Blog: What's Happening Now?
If you've been wondering what the latest happenings are with the CodeIgniter framework but haven't been able to find much outside of a few blog posts and email threads floating around, you're in luck! They've just posted a great update to the main CodeIgniter site about the framework and its relation, ExpressionEngine.I'd like to give you an update on what's happening with CodeIgniter. 2.0's code has been stable and in use by ExpressionEngine and MojoMotor for many months [...] CodeIgniter has always...

Latest PHP Tweets