Sunday, April 30, 2006
Openomy PHP API
Openomy is an online file system. You can store files on Openomy and access them from any computer. Openomy organizes files and users via tags (as opposed to folders). You can choose to keep your files guarded by Openomy, or allow certain outside applications (of your choice) to do new and interesting things with your data.
Read more at Openomy PHP API
Friday, April 28, 2006
A WEEK IN PHPWORLD #3
Welcome back to the third edition of "a week in phpworld" - my subjective view at the highlights that happened last week in the phpworld.
PHP's World
Ilia Alshanetsky finally released the third Release Candidate for PHP 5.1.3 on friday. Somehow confusing to me, that one can't find the fix of the security-holes that lead to the "unofficial" RC3 i reported about last week in the ChangeLog of RC3. Instead you find them in the ChangeLog of RC2 - a RC that was actually released at end of march but now is timed to 6th of april. Confused now, too? However, Ilia asked the community once more to test the RC3 as much as possible - looking to release a final version of PHP 5.1.3 this week thursday. You can find the source download as usual at Ilias php.net-home and the binaries for windows at Edin's php.net-home.
Some other good news come from : Scott Mattocks announced a Release plan for PHP-GTK 2-alpha1 in the weekly PHP-GTK News. According to this plan, there are only three main-issues left preventing an immediately release. First there is a review for some patches needed , next some windows-bugs has to be fixed and last there is a need for update of the packaging script.
Zend Framework Gets BSD License
"
Wednesday, April 26, 2006
PHP GOTCHAS
PHP GOTCHAS
Wednesday, April 19, 2006
PHP Performance: lighttpd vs apache
PHP Performance
lighttpd + fastcgi is more than 25% faster than apache + mod_php4.
For static files we already know that lighttpd is 4-6 times faster.
whenpenguinsattack: lighttpd vs apache
Tuesday, April 18, 2006
A Quickstart to using PEAR with PHP for database driven web applications - Codepoets - David and Katherine Goodwin
intro:This article shows how to use the PEAR DB package for database abstraction and querying.subject:pear, php, database, mysql, postgresqlcontent:What is PEAR::DB?PEAR::DB, provides a uniform, cross platform, cross database method for connecting to databases, when writing PHP applications/scripts.Extensive documentation can be found online hereThis article aims to show briefly, how queries and updates can be performed when using PEAR DB.What's wrong with the traditional PHP method(s)? * Inconsistent API - mysql_connect, pg_connect etc * Different APIs have different methods of connecting to a database * Inconsistent methods for retrieving data and/or performing updates (pg_exec, pg_query, mysql_query etc) * Difficult to port code between databases * Not all APIs support all features (E.g. prepared statements) * Inconsistent error handling (mysql_error(), pg_last_error()) * Secure/safe queries require effort (pg_escape_string(), mysql_real_escape_string(), addslashes(), magic_quotes_gpc())
Read more at www.codepoets.co.uk/doc...
Monday, April 17, 2006
Yahoo Web Services Return Serialized PHP and PHP Developer
REST web services now return serialized PHP by simply adding the "output=php" parameter to any web services request.
For example, suppose you want to search for PHP-related podcasts and return the first five results using Yahoo!'s Podcast Search web service http : //developer.yahoo.net/search/audio/V1/podcastSearch.html :
http://api.search.yahoo.com/AudioSearchService/V1/
podcastSearch?appid=YahooDemo&query=PHP&results=5
&output=php
The request above returns the results as serialized PHP. A simple PHP script can trivially parse the request using PHP's unserialize function which is built-in to all PHP4 and PHP5 implementations:
$request = 'http://api.search.yahoo.com/'
. 'AudioSearchService/V1/podcastSearch?'
. 'appid=YahooDemo&query=PHP&results=5&output=php';
$result = file_get_contents($request);
$phparray = unserialize($result);
echo '';
print_r($phparray);
echo '';
?>
(note: remove the extra backslash from the PRE tags for this to work)
For more information, and a complete list of Yahoo! developer APIs, check out the Yahoo! Developer Network web site at developer.yahoo.com
Creating sortable lists with PHP and AJAX
This article covers the implementation of a system that lets you easily define the order of such a list.
http://www.phpriot.com/d/articles/client-side/
sortable-lists-with-php-and-ajax/