News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Lukas Smith's Blog:
Chatting with Rasmus (part two and three)
0 comments :: posted Friday April 04, 2008 @ 10:37:12
voice your opinion now!

Lukas Smith has posted the second and third parts of his talk with Rasmus Lerdorf - a look at MaxClients and HTTP headers.

As promised here are the two other logs from the recent chat I witnessed. [...] Again I left the logs in their raw original way. Hope they are useful for you all.

Lukas also links to two resources he mentions in the second (third?) log about performance as well as mentioning one of the most useful Firefox extensions for web developers - YSlow!.

tagged with: lukassmith rasmuslerdorf chat http header maxclient


Developer Tutorials Blog:
5 PEAR gems free php scripts that will help you code quicker
0 comments :: posted Wednesday March 19, 2008 @ 09:37:29
voice your opinion now!

Akash Mehta has pointed out five "PEAR gems" that can help you get your code up and running faster - some helpful bits of code to help you deal with some common issues.

Sifting through the repository is also a challenge; a basic category system is in place, but it’s hard to tell what you want when you don't know what's available. Here are some gems from the PEAR repository that you could really find useful.

The five that made his list are:

tagged with: pear repository package akisment http archive spreadsheet excel xml

Stoyan Stefanov's Blog:
Simultaneous HTTP requests in PHP with cURL
0 comments :: posted Tuesday February 19, 2008 @ 09:34:00
voice your opinion now!

On his blog today, Stoyan Stefanov has a howto posted on a trick he figured out to get a PHP script to grab data from multiple resources at one time - with cURL.

The basic idea of a Web 2.0-style "mashup" is that you consume data from several services, often from different providers and combine them in interesting ways. This means you often need to do more than one HTTP request to a service or services. [...] Using the curl_multi* family of cURL functions you can make those requests simultaneously. This way your app is as slow as the slowest request, as opposed to the sum of all requests. And that's something.

He includes example code that loops through a given array of resources and executes the fetch, brining the results back into a result array. To illustrate, he also includes two types of examples of fetching content - one for GET and another for POST.

tagged with: curl simultaneous http request tutorial get post

PHP in Action Blog:
Tips for web testing
0 comments :: posted Wednesday February 13, 2008 @ 08:09:46
voice your opinion now!

On the PHP in Action Blog, there's a this post that shares some tips for testing your web applications with some simple tests.

I just started listing the techniques I've learned when writing tests to exercise the web interface of a PHP application. This is from my experience and my personal preferences; it's not the final word or necessarily right for everyone.

He suggests:

  • Use SimpleTest's Web tester if you can
  • Test the web output using regular expressions
  • Use element IDs or names to test links, forms and fields
  • Log HTTP requests in the application
tagged with: web testing unittest simpletest regularexpression http request

Mike Willbanks' Blog:
Performance Tuning Overview
0 comments :: posted Thursday January 31, 2008 @ 11:11:00
voice your opinion now!

Mike Willbanks has posted an introduction he's written up giving some helpful hints at tuning your servers and PHP applications for performance.

The focus of this post is not to show performance related items to specific PHP frameworks since many bottlenecks actually apply before running the framework itself that should certainly be solved up front. Therefore in this posting I attempt to look at simple items that can be deployed in order to produce finer tuned systems.

He talks about a few different aspects:

  • PHP Performance Tuning (opcode caching, apc file priming, includes, loops, etc)
  • RDBMS Performance Tuning (indexes in queries, query caching, archiving)
  • HTTP Performance Tuning (content compression, css sprites, limit modules, etc)
tagged with: performance tuning http rdbms server cache compress

Jonathan Snook's Blog:
Password Protecting Admin Functions in CakePHP
0 comments :: posted Wednesday January 30, 2008 @ 09:31:00
voice your opinion now!

Jonathan Snook has posted a helpful trick for CakePHP users out there looking to secure sections of their site away from "normal users" and keep it only in the hands of the admins.

I just wanted to document this for easy future reference but if you don't want to hook up a complex user adminstration with authorization components, you can simply specify that the admin path be password protected in either your .htaccess file or in your httpd.conf.

This method is actually one of the built-in methods Apache has for restricting access (http authentication) that he's placed on his "/admin" directory. Call htpasswd to create the password file and you're all set to go.

tagged with: cakephp framework password protect htaccess authentication http


conference zendframework PHP5 zend mysql package PEAR code ajax releases security application job database framework developer pecl release cakephp book

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