 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPClasses.org Blog: Throttling Background Tasks Unusual Site Speedup Techniques Part 2
by Chris Cornutt October 26, 2010 @ 09:17:55
On the PHPClasses.org blog Manuel Lemos has posted part two of his look at techniques to help speed up your site - a few things that you maybe hadn't thought of before.
In the previous article I talked about one important factor that often seriously affects the user perception of the speed of a site, which is the presence of content from external sites that slows down the load of pages, such as advertising and widgets. In that article I presented a technique that I am using to make external content not affect the user perception of the site speed. In this article I am addressing another factor that may also affect the user perception of site speed, but this time is related to aspects of the server side environment.
In this article he looks at things like other server-side background processes, throttling their CPU usage, throttling PHP's CPU usage and the use of a monitoring class to help you and your applications (and sysadmins) stay on top of what's happening with the server.
voice your opinion now!
background task throttle site speed tutorial
Steponas Kazakevicius' Blog: Interruptable file download
by Chris Cornutt September 13, 2010 @ 10:06:32
Steponas Kazakevicius has written up a new tutorial about file downloading and, more specifically, making an download tool that can handle interruptions in mid-stream (elegantly).
Have you ever been to a website that offers downloads of stuff? And while you are waiting for the download, there are lots of ads around? Sure you have. I have too. The last day I was downloading stuff. An idea came to my head. Was there a site which required to stay and watch the ads while you are downloading? Didn't see one. Is that technically possible? Sure. I wanted to show how. So I made a small web app for that.
His application (live demo or download available) submits the user upload in the background so that, if the user decides to cancel it, they can at any time and move on immediately.
voice your opinion now!
tutorial interrupt download background
Ralph Schinlder's Blog: PHPundamentals Series A Background on Statics (Part 1 on Statics)
by Chris Cornutt May 07, 2010 @ 09:47:59
Ralph Schindler has started up a new series of posts to his blog with this first article looking one of the fundamentals of PHP - statics.
Static class members (from here on called simply, 'statics') in PHP conjure both the best and worst in developers for a variety of reasons. In part 1 of this series of articles on statics, we'll explore some background to get a better understanding of statics in PHP.
He covers some of the places that the idea of "static" came from and how its used in a few other languages (including ones PHP borrowed some of its ideas from). He uses a few analogies to illustrate what statics are and even includes some illustrations of how the static scope of PHP compares with other languages (like Java and .NET).
voice your opinion now!
fundamental static language background
Andre Liem's Blog: 5 tips and tools to optimize your php application - Part 1 simple
by Chris Cornutt December 02, 2008 @ 15:31:07
Andre Liem has posted five simple tips (part one of a two-part series) on ways to optimize your PHP applications.
After experiencing some issues with an application running the Zend Framework, I realized there were a lot of things I was not doing to optimize my application. There are simple and more complex actions you can take to speed up your application. Since time is precious, and developers with an expertise on optimization are not always available, I've split this post into two sections (simple and more advanced). This post focuses on the simple part.
His simpler suggestions include using the YSlow extension in Firefox, minification of Javascript and CSS, merging CSS/JS requests, using gzip and avoiding CSS background images.
voice your opinion now!
optimize application tip tool yslow javascript css marge background
Developer Tutorials Blog: Running background processes in PHP
by Chris Cornutt July 18, 2008 @ 11:18:21
New on the Developer Tutorials blog today is this look at handling background processes from your PHP script:
You've checked and double checked the integrity of user input, and you're doing some serious processing. There's only one problem: it's too slow. There's a simple solution: forking your processing script, and running the code as a background process asynchronously. It can email your user when it's done: they'll wait. In this tutorial, I'll show you how to get started with background processes in PHP.
Akash gives examples of the three keys to background processes - starting the script via an exec, talking to the process by passing additional parameters and including code to monitor the state of the background process via something like a MySQL "sessions" table that the script writes to.
voice your opinion now!
process background exec parameter mysql session track
Zend Developer Zone: Decorators with Zend_Form
by Chris Cornutt May 05, 2008 @ 12:57:34
On the Zend Developer Zone there's a new tutorial (by Matthew Weier O'Phinney) covering the use of decorators with the Zend_Form component of the Zend Framework.
One point of flexibility [Zend_Form] offers has proved to be a pain point for many developers: decorators. This tutorial aims to shed some light on decorators, as well as provide strategies for creating your own decorators and combining them in creative ways to customize the output your forms generate.
Matthew starts with a little background behind the component to help you find your way around. Building on this, he shows how to use some standard output decorators and how to create decorators of your own. His example shows how to create a set of grouped checkboxes.
voice your opinion now!
decortor zendform tutorial background example
Mikko Koppanen's Blog: Fill patterns
by Chris Cornutt April 29, 2008 @ 15:24:50
Mikko Koppanen has a quick post today showing how to use PHP and Imagick to create an image of text filled with another image layer behind it:
The fill pattern is used to annotate text but the named pattern could also be used to fill any shapes that allow fill to be specified (include circles, ellipses, rectangles, polygons etc etc).
His example is pretty simple (with a "Hello World!" output) that pulls in the background image, creates the composite layer over it, adds the text to it and sets the fill to the background image's layer. The whole this is wrapped up and output as a PNG file.
voice your opinion now!
fill pattern imagick tutorial example png background image
|
Community Events
Don't see your event here? Let us know!
|