PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 1161 to 1180 of 6889

Bob Madjak's Blog: Making images transparent using Imagick - enter the pixel iterator

Bob Madjak's Blog: Making images transparent using Imagick - enter the pixel iterator
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...

Get your time backa by learning to automate it

Get your time backa by learning to automate it
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...

Community News: Latest PEAR Releases for 07.16.2012

Community News: Latest PEAR Releases for 07.16.2012
Latest PEAR Releases: PHP_CodeSniffer 1.3.5

Community News: Atlanta PHP & Atlanta MongoDB Host Derick Rethans

Community News: Atlanta PHP & Atlanta MongoDB Host Derick Rethans
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...

So, You Like To Read?

So, You Like To Read?
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 aAsentinelAquestion, 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 you...

Reddit.com: History Lesson: What PHP coding was like in 1996

Reddit.com: History Lesson: What PHP coding was like in 1996
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' Blog: What is PHP doing?

Derick Rethans' Blog: What is PHP doing?
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...

Site News: Popular Posts for the Week of 07.13.2012

Site News: Popular Posts for the Week of 07.13.2012
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?

What is PHP doing?
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's Blog: What PHP 5.5 might look like

Nikita Popov's Blog: What PHP 5.5 might look like
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...

PHPMaster.com: Better Understanding PHP's Garbage Collection

PHPMaster.com: Better Understanding PHP's Garbage Collection
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...

MaltBlue.com: Zend Framework - How To Implement RSS Feeds the Easy Way

MaltBlue.com: Zend Framework - How To Implement RSS Feeds the Easy Way
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...

Community News: PHPEasy.co.uk Launched

Community News: PHPEasy.co.uk Launched
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...

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: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...

Video: Decoupling Content Management

Video: Decoupling Content Management
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...

Fortrabbit.com: Cloudscapes - Comparing PHP Cloud Hosting Platforms

Fortrabbit.com: Cloudscapes - Comparing PHP Cloud Hosting Platforms
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:...

Tom Oram's Blog: Unit testing a Zend Framework 2 Controller

Tom Oram's Blog: Unit testing a Zend Framework 2 Controller
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...

OOP vs Procedural Code

OOP vs Procedural Code
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

Phil Sturgeon's Blog: PHP: Ecosystem Update

Phil Sturgeon's Blog: PHP: Ecosystem Update
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's Blog: PHPNW12: You should be there, and someone can be there

Stefan Koopmanschap's Blog: PHPNW12: You should be there, and someone can be there
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