Popular posts from PHPDeveloper.org for the past week:Michael Maclean: Why one-line installers are a bad idea
PHPMaster.com: Building Your Own URL Shortener
Community News: Atlanta PHP October Meeting - Jacob Terry on Tracking in Applications
Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12
Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites
Igor Wiedler: Binary parsing with PHP
Gonzalo Ayuso: The reason why singleton is a "problem" with PHPUnit
Reddit.com:...
On the Silver Lining blog (a MSDN Windows Azure related site), there's a recent post showing how you can enable XDebug on your Azure instance to help with debugging your application.In this post, I'll cover how to run XDebug (including the profiler) in Windows Azure Web Sites. Enabling XDebug in Windows Azure Web Sites is as simple as enabling an extension. However, enabling an extension for the built-in PHP runtime is slightly different than doing so for a custom PHP runtime. I'll cover both scenarios...
On the NetTuts.com site today there's a new screencast posted (by Jeffrey Way) that gives you a hands-on look at using PHPUnit to write and execute tests on your code.In this screencast, we'll build a relatively simple class, using TDD techniques. Along the way, we'll discuss various PHPUnit methods, how to create mock objects, and more! I encourage you to work along; it's the best way to learn!If you're new to unit testing this is a good way to start. He uses the Laravel framework as a base for the...
The Codeception blog (a BDD testing tool) has a new post on using their Locator class to create more complex tests based on XPath or CSS selectors.In the latest Codeception 1.1.4 new Locator class was introduced. Basically it should simplify your life in writing complex XPath or CSS locators. Right now it has minimal, yet useful functionality.The post shows how to combine more than one item for location with either a tag, CSS-based or XPath-based selector. It also shows how to use the "tabindex" method...
Gary Hokin has posted the first part of a series he's doing to introduce those Zend Framework v1 developers out there to the latest version of the framework, Zend Framework v2.Having worked with ZF1 for a lot of years, I've been watching the development of ZF2 with interest. I've tried nearly every version, from the heady days of the pre-Skeleton App, right through the betas and release candidates. With the imminent release of ZF2 proper, I thought I would share with you some of the most obvious...
My slides introducing PHP 5.4.7 from the talk at Guelph PHP user meetup are now available online and can be downloaded at: http://ilia.ws/files/nena_php54.pdf
Here's what was popular in the PHP community one year ago today:Project: Warden: A user database authorization package for FuelPHP
PHPMaster.com: File Uploads with PHP
Johannes SchlĂĽter's Blog: MySQL Query Analyzer and PHP
PHPMaster.com: Preventing Cross-Site Request Forgeries
Wojciech Sznapka's Blog: Loosening dependencies with closures in PHP
Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP
PHPMaster.com: Introducing Superglobals
PHPClasses.org: Lately in PHP Episode 16 - APC in PHP, MODX CMS, Top...
It's great to have access to such a great repository of WordPress plugins, but sometimes a great plugin is just a€otoo mucha€ť for a smaller task of function. Like social media buttons, they have in fact a very simple function and most buttons require only a few rows of code. If a complex plugin doesn't [...]
On Reddit.com there's a recent post questioning the (recently) common saying that PHP developers should avoid static methods when concerned about testability:I get it: testing is important, and building your codebase in a manner that is easy to test should be a priority. However, sometimes I feel like I have to compromise on the elegance of my code in order to maintain testability. Cases where perhaps a static method makes sense, but end up having to perform some coding acrobatics in order to avoid it....
Thomas Hunter has posted a (nice long) book review of the Packt Publishing book "CouchDB and PHP Web Development" to his site.When I first picked up this book, I was expecting a boring, text-book approach to code examples for PHP talking with CouchDB. Boy was I wrong. What I found was a book that has you build a complete working application. And by complete, I mean you'll add the Twitter Bootstrap framework and it will be sexy.He mentions parts of the app you'll create - a PHP framework, 3rd party...
As Ars Technica reports, there was a recent exploit found on the SourceForce website's installation of phpMyAdmin that allowed an attacker to POST anything to the site to be executed.Developers of phpMyAdmin warned users they may be running a malicious version of the open-source software package after discovering backdoor code was snuck into a package being distributed over the widely used SourceForge repository. The backdoor contains code that allows remote attackers to take control of the underlying...
On his site today Ulf Wendel talks about SQL injection and some comments that came up during a recent webinar about common MySQL mistakes PHP developers make.Never trust user input! Injection is a threat . You are the new web developer, aren't you?. Never trust user input is the first rule I had to learn as a web developer in anchient times. Injection can happen whenever user input is interpreted or used to compose new data. A quick recap of the #3 mistake from todays Top 10 MySQL Tips and Mistakes for...
FTP Crawler
MCache
PHP Array Search
Bing Search
PHP OAuth API
Igor Wiedler has a new post to his blog showing how to work with binary data in your PHP applications a few different built-in functions including unpack and bindec.Binary operations in PHP are a bit strange. Since PHP was originally a templating layer for C code, it still has many of those C-isms. Lots of the function names map directly to C-level APIs, even if they work a bit differently sometimes. For example, PHP's strlen maps directly to STRLEN(3), and there are countless examples of this. However,...
When I program Clojure and PicoLisp I use Emacs and it's the way things are done in Emacs which inspired me to looking into making myself more productive doing PHP in Eclipse.... Read More
If you've been around the PHP community for any length of time, chances are you've seen the ElePHPant stuffed animals that have been floating around conferences and living on developers' desks. Well, the Zend Framework has decided to create some of their own - a more green variety. Pádraic Brady has posted about them.Blue PHP ElePHPant plush toys are so yesterday. Ben Scholzen (you might know him as DASPRiD on IRC/Twitter) is now taking pre-orders for green Zend Framework ElePHPants. Yes, they are...
Never trust user input! Injection is a threat . You are the new web developer, aren't you?. Never trust user input is the first rule I had to learn as a web developer in anchient times. Injection can happen whenever user input is interpreted or used to compose ...
On the ScreenFony.com site there's a quick tutorial showing you how to get started with Symfony2+Twitter Bootstrap+Assetic+LESS in a basic application. Assetic is a library that helps with asset management and use and LESS is a CSS pre-processor that makes it simpler to work with your site's CSS.Bootstrap is a well known and powerful front-end framework for fast prototyping, it uses LESS and it can be easily integrate in your Symfony applications with the help of assetic. In this post I'll show how to:...
Blue PHP ElePHPant plush toys are so yesterday. Ben Scholzen (you might know him as DASPRiD on IRC/Twitter) is now taking pre-orders for green Zend Framework ElePHPants. Yes, they are green. Yes, they have a€oZFa€ť printed on them. No, they are not a repository of Zend Framework knowledge. We tried really hard, but Intel insists that magical toys from the future are not real. Thank you for getting my hopes up, Mimzi. Stupid rabbit.
Ben needs to reach a minimum production order of 1000 small ZF...
|
Latest PHP Tweets
|