In this recent post to his blog Bob Madjak looks at how to use the Imagick functionality to create images with transparent backgrounds.So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.He shows how to use the ImagickPixelIterator to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is...
After nearly a year ago saying I was going to be a more regular blogger, here I am nearly 4 months from my last post (and closer to 5 months since one that arguably had some sort of insight to it). So you, one of the 5 regular readers of my blog are probably wondering what's my excuse going to be this time.
Simply put, I let my own inefficiencies get the best of me.
I plan to do a series of blog posts around this topic, but the bottom line is that being a remote worker means you have to have an even...
Latest PEAR Releases:
PHP_CodeSniffer 1.3.5
The Atlanta PHP User Group has a special announcement posted to their site - a joint event happening with the Atlanta area MongoDB user group with Derick Rethans (of 10gen) as the speaker.MongoDB is a scalable, high-performance, open source, document-oriented NoSQL database. [...] This talk introduces MongoDB for developers who aren't familiar with it with a detailed introduction of how to work with MongoDB from PHP. This talk will cover the basics from installing the PHP driver and connecting to MongoDB...
One of the things that I see repeated over and over again is the simple question "What books should I read to become a better developer?". Or "How did you learn about that?". Or even "What does a coding standard matter?"... OK, so that last one was a bit of aA sentinelA question, but the point is clear. Where should you look if you want to read to improve your development abilities? Well, I figured I'd take a few pages out of my library and share which books worked for me, in order of significance. If...
On Reddit.com there's a new post that throws you back to a different time in PHP's life - back to 1996 when PHP was still in version 3:I was lurking one day on Usenet Perl forums when I saw an announcement about the release of PHP 2.0/FI, the first truly public version of PHP. I was growing weary of trying to get PERL working via CGI and fell in love immediately with how simple and fault-tolerant mod_php with Apache was compared to CGI hell. In 1996, they didn't have sites like reddit when I was a noob....
Derick Rethans has a new post to his blog showing how you can, using a few simple unix tools, figure out what PHP is doing when your scripts are executing.Sometimes when you have a long running PHP script, you might wonder what the hell it is doing at the moment. There are a few tools that can help you to find out, without having to stop the script. Some of these work only on Linux.He shows you how to use the following commands to track down exactly what your process is working on: strace, ltrace and gdb...
Popular posts from PHPDeveloper.org for the past week:Anthony Ferrara's Blog: The True Problem With PHP
Jeff Carouth's Blog: Micro Framework and JavaScript Applications
Matt Frost's Blog: Prevent Overcomplication
Phil Sturgeon's Blog: PHP: Ecosystem Update
The Bakery: 3.0: a peek into CakePHP's future
Anthony Ferrara's Blog: Building A Multi-Version Build System
Raymond Kolbe's Blog: DOMPDF in ZF2
Community News: PHP, The Right Way Site Launches
Lee Davis' Blog: The enum conundrum
DZone.com: All...
What is PHP doing?
London, UK
Friday, July 13th 2012, 09:42 BST
Sometimes when you have a long running PHP script, you might wonder what the hell it is doing at the moment. There are a few tools that can help you to find out, without having to stop the script. Some of these work only on Linux.
strace
The first tool that you can use is strace. strace is a tool that traces system calls. System calls are made by PHP for reading/writing from/to the network and/or files; this also includes reading and...
Nikita Popov has looked ahead to the future of PHP in a new post to his blog, thinking about what PHP 5.5 might be like and what features could be included.PHP 5.4 was released just four months ago, so it probably is a bit too early to look at the next PHP version. Still I'd like to give all the people who aren't following the internals mailing list a small sneak peak at what PHP 5.5 might look like.He's looking at the proposed functionality, not finalized features, so some of it might not make it in. He...
If you've been working with PHP for any length of time, you probably have wondered what happens to everything you've created when your script's execution ends. Well, in this new post from PHPMaster.com PHP's garbage handling functionality.It's interesting how just a few years can make a difference in the names that are given to things. If this were to come up today, it would probably be called PHP Recycling Options, because rather than picking things up and throwing them into a landfill where they'll...
On the MaltBlue blog Matt Setter has a new tutorial posted about creating RSS feeds quickly and easily with the help of the Zend Framework and context switching.Ever wanted to know how to take an existing Zend Framework application where you have posts, records, news or anything else stored in a data source and updated regularly, and make it available as a feed for your users that they can subscribe to? Well today, that's what I want to show you. Recently, during the development of the burgeoning PHP...
Carl Gresswell has put together a new site that aims to provided tutorials for budding PHP developers out there looking to advance their knowledge of the language and some of the best practices surrounding it - PHPEasy.co.uk.
I have created PHPeasy with the aim of providing tutorials, tips, code snippets and news on the subject of PHP. I rarely get the opportunity to discuss PHP and share thoughts with other like minded developers, so I'm hoping that this blog will allow me to do that. I aim to provide...
Here's what was popular in the PHP community one year ago today:Mushfiqsimple Blog: Getting Started with MongoDb with PHP
Tutorialzine.com: Creating a PHP and CSS3 Powered About Page
DevShed: PHP Object Oriented Programming using LSP
PHPBuilder.com: 6 PHP Performance Tips for Producing Highly Optimized Code
CodeForest.net: Android JSON-RPC client and PHP Zend Framework server
Liip Blog: First Release of Proxy-Object
Community News: An Effort to Deprecate the MySQL Extension
Brian Swan's Blog: PHP Driver...
Our concept of Decoupled Content Management, together with the VIE and Create.js is really taking off. I've spent in various conferences this summer speaking about them.
Here is a video from the talk I gave in the IKS Salzburg Workshop last month. It is quite a lot shorter than the more comprehensive talks like the one in Symfony Live, but should introduce the ideas pretty well:
Those interested in the background of all this may also enjoy this video where we're talking about the concepts behind...
On the Fortrabbit.com blog there's a new post that does a quick overview and comparison of 11 of the more popular cloud-based hosting platforms out there that are PHP friendly.We are currently building yet another PHP Cloud Platform ourselves. Of course we looked around to see what the others are up to. This is my (Franks) personal point of view of the current market situation showcasing my favorite services. I try not to judge, neither i will compare features nor prices.Services on his list include:...
In this recent post Tom Oram looks at a method he's put together for unit testing a controller in a Zend Framework v2-based application (using PHPUnit).So far I've got a basic Zend Framework 2 Application up and running and got PHPUnit running & testing one of my models. Next up I wanted to try and workout how to test a controller. I had come to the conclusion that what I needed to do was create an instance of my controller in an environment where it I could get it to run each action I wanted to test.He...
This morning I was asked a question that took me by surprise: "Your examples for PasswordLib are in OOP style, how do I write it in procedural style"... This took me by surprise, because the examples actually are in a procedural style. So I felt that I should write a post about the real differences between OOP and Procedural coding styles. Hint: whether you use classes and objects or not has very little to do with the answer...Read more A»
In this new post Phil Sturgeon looks at two movements in the PHP community that are doing positive things for the language and the community as a whole - the Framework Interoperability Group (PHP-FIG) and the more recent "PHP The Right Way" initiative.Don't worry guys, this isn't another PHP apologist or PHP hater blog. We've all had enough of those recently. This is a quick heads up on two projects that are doing what they can to make the PHP ecosystem a better place.He talks a bit about some of the...
Stefan Koopmanschap, a speaker at the upcoming PHP North West Conference (in Manchester, UK the first part of October) is doing something interesting with a ticket he purchased - he's giving it back to the community and is taking nominations for the recipients.It all started last year: I decided I wanted to go to PHPNW even if I wasn't accepted as a speaker. Being Dutch, I made sure to purchase my ticket for the conference during the blind bird period to save some money. But then I got accepted as a...
|
Latest PHP Tweets
|