News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Let's Talk Efficient Communication for PHP and Android, Part 2
June 05, 2012 @ 13:19:33

On PHPMaster.com today they've posted the second part of their series looking at combining a PHP backend and an Android application (by Matt Turland). In the previous article, he helped you set up some of the Android side to be able to reach out to a PHP web service. In this second part he gets into the sending and receiving of messages between the client and server.

Part 1 of this series focused on getting the Android application set up to make an HTTP request. In part 2, we'll focus on implementing the use of data serialization and compression on the Android and PHP sides of the request.

He has it broken up into the different steps of the process:

  • Determining the Data Serialization Format
  • Determining the Data Compression Format
  • Sending the Response
  • Decompressing the Response
  • Deserializing the Response

He also includes a section about caching the responses you get back from the server, an important step that can save you (and your users) some headaches and maybe even give a bit of a speed boost.

0 comments voice your opinion now!
android webservice data serialization compression response


Sftuts.com:
Using Assetic in Symfony2 for CSS compression
April 19, 2011 @ 11:55:33

On Sftuts.com today Albert Jessurum has taken a look at Assetic, a tool included in the upcoming Symfony2 framework, as a means for compressing the CSS on a site. It's a simple four-step process and he includes each command you'll need along the way.

Symfony Standard comes bundled with a great library called Assetic for Assets Management in PHP 5.3 (CSS, js, and even image optimization coming soon) developed by Kris Wallsmith. We will be using it to compress our CSS files, thus reducing the time required to download stylesheets in our Symfony2 projects.

The steps are pretty simple (especially if you're at all familiar with Symfony):

  • Install the YUI Compressor
  • Change the way you call your assets
  • Edit your configuration file
  • Dump your assets for production

You'll need to have an installation of Symfony2 already set up and running - there's no steps included on that setup.

0 comments voice your opinion now!
assetic symfony css compression


Ibuildings techPortal:
Optimising Magento for Performance
March 08, 2011 @ 13:41:09

On the Ibuildings techPortal today there's a new tutorial from Rupert Jones showing you how to get the best performance from Magento with a set of technologies tailored for just that.

Following our earlier entry about installing Magento Enterprise, we thought it would be appropriate to follow up with some tips for getting more from your Magento installation. One of the major criticisms leveled at Magento is its speed; many complain that it is far too slow. In this article we'll go through some steps you can perform to fine-tune your server to allow Magento to run more smoothly and more quickly in a production environment.

Among the technologies they recommend are things like memcached, mod_expires, APC, gzip and MySQLTuner.

0 comments voice your opinion now!
optimize magento performance cache compression tune


Zend Developer Zone:
Working with RAR, LZF and BZ2 Compression Formats in PHP
November 03, 2008 @ 12:03:01

The Zend Developer Zone has posted this new tutorial from Vikram Vaswani covering the use of different archive formats (like RAR, LZF and BZ2 compression methods) from inside PHP.

When it comes to dealing with different file formats, it's hard to faze PHP. XML documents, PDF files, JPEG images, MP3 media...you name it and, chances are, there's a PHP extension to handle it. And so it is with compression formats like RAR, LZF and Bzip2 - although these archive formats are far less common today than the ubiquitous TAR and ZIP formats, they are still actively used by many applications and projects, and continue to be supported in PHP via PECL extensions.

He pulls in a few PECL extensions to give PHP the power it needs, both for unix-based systems and Windows DLL files. He includes some sample code showing how to open up a rar file and list the contents inside as well as extract the files themselves. And, of course, code examples for compressing files into a new archive is included too.

0 comments voice your opinion now!
rar lzf bz2 compression format pecl extension dll windows tutorial


PHPClasses.org:
Responsive AJAX applications with COMET
September 27, 2006 @ 13:44:10

From PHPClasses.org today, there's a new article describing the combination of a few technologies - more specifically Ajax, Comet, and PHP - to create responsive applications.

This post describes an approach used to implement highly responsive AJAX applications using the COMET approach. It describes in detail how the AJAX COMET approach can be implemented in PHP.

It also discusses how HTTP compression and chunking affect AJAX response delays, as well aspects that may influence the choice between Apache 1.3.x with mod_gzip versus Apache 2.x with mod_deflate for AJAX COMET applications.

Manuel breaks the tutorial up into sections:

  • Multiple response AJAX requests
  • COMET: Multiple response AJAX request implementation
  • HTTP compression
  • Page compression delays
  • Avoiding mod_gzip dechunking
  • Apache 2.2.x with mod_deflate
For each topic, there's a bit of explaination and some links to reinforce the ideas. There's not really any code, but he does link to various classes that can help combine to meet the goal.

0 comments voice your opinion now!
ajax application responsive comet apache compression multiple ajax application responsive comet apache compression multiple


International PHP Magazine:
Poll Question What is the Top Criterion for Scaling PHP?
August 31, 2006 @ 10:41:36

The International PHP Magazine has posted the results of the question asked in their latest poll - "What is the Top Criterion for Scaling PHP?"

Of the six options they provided:

  • Object code caching
  • Template systems
  • Distributed object-caching systems
  • PHP variables that can be set
  • Output Compression
  • Other things that may help
one stood out as a clear winner - "Object code caching". Bringing up second place was "Distributed object-caching systems" and the other options coming in pretty close behind.

Be sure to cast your vote for their latest poll question - "Which is the Most Common Database Problem?"

0 comments voice your opinion now!
poll question scaling criteria caching compression variables template poll question scaling criteria caching compression variables template


International PHP Magazine:
IPM Poll Question How to Speed up Your Site?
August 22, 2006 @ 08:27:06

The International PHP Magazine has posted the results of their latest poll today, asking the question "what's the best way to speed up your site?"

Options included:

  • Reduce overall latency by reducing HTTP requests
  • Save your images properly
  • Strip extraneous PHP calls
With the option of "Miscellaneous thoughts" coming in at the number one place. The next step down was a tie between "Save your images properly" and "Reduce overall latency by reducing HTTP requests" with "Compression" following close behind.

Be sure to cast your vote in this week's poll asking "What is the Top Criterion for Scaling PHP?"

0 comments voice your opinion now!
poll question speed site latency images compression javascript poll question speed site latency images compression javascript


JSLabs Blog:
Scaling PHP
August 15, 2006 @ 07:13:57

On the JSLabs blog today, there's a guide seeking to help you optimize your PHP through a number of simple steps - six of them to be exact:

  • object code caching
  • Template systems
  • Distributed object caching systems
  • PHP variables that can be set
  • Output Compression
  • Other things that may help

Under each item there is more information, links, and even examples of the config files to help you along your way.

0 comments voice your opinion now!
scaling object template caching output compression scaling object template caching output compression


Paul Stamatiou's Blog:
5 Ways to Speed Up Your Site
June 22, 2006 @ 07:31:06

Paul Stamatiou shares with us today five ways to speed up your site, some quick and easy recommendations to making your site fly.

Throughout the blogosphere I'm always seeing these blogs, that while they look great, are horribly slow and overburdened. Over the past few months I have become somewhat of a website optimization specialist, bringing my own site from an over 250kB homepage to its current 34kB.

I will help you achieve some of the same success with a few, powerful tips. Most of these are common sense, but I can't stress their importance enough. I will concentrate on the website and not the server in this article, as there are too many things to discuss when it comes to server optimization.

The five tips mentioned include "Reduce Overall Latency by Reducing HTTP Requests" and "Compression", each with a paragraph or so of explaination as to what it is and how to implement it. There's even a PHP-specific one that talks about a paring down of the bits of functionality that really aren't needed.

0 comments voice your opinion now!
speed up site ways latency images compression javascript extra speed up site ways latency images compression javascript extra


DevShed:
An Object-based Approach to HTTP Compression in PHP
April 17, 2006 @ 13:06:46

DevShed has posted part two of their series on speeding up your page load times with HTTP compression, this time looking at a more object-oriented approach to handling the data you want to compress.

Over the first tutorial of this series, I developed some hands-on examples, aimed at illustrating how "Gzip" encoding can be used within PHP scripts to compress the output generated by dynamic PHP pages. After transferring the encoded data to the client, contents are uncompressed and finally displayed on the browser.

By the end of this article, you should have the appropriate knowledge for building a simple data compressor class, in addition to using HTTP compression for reducing the download time of object-generated web pages.

They start with the creation of a simple data compression class, with functions to see if the browser supports gzip encoding and to get/send/compress the actual data. With the sample class created, they put it to the test with a more real-world example - echoing out user information from a MySQL database.

0 comments voice your opinion now!
gzip compression buffer output object-oriented gzip compression buffer output object-oriented



Community Events











Don't see your event here?
Let us know!


unittest package introduction facebook security language component opinion framework composer podcast release performance symfony2 hack hhvm install application database support

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework