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.

A WEEK IN PHPWORLD #3

 

Zend Framework Gets BSD License

Zend Framework Gets BSD License: "Andi Gutmans of Zend announced today a new license for the Zend Framework. His post on the mailing list says the reasons for the change are to allow the Framework to be used in GPL projects, and to offer companies an OSI approved license to make compliance matters easier. The Contributor License Agreement has not been modified. The license can be found on the Zend Framework website.
"

Wednesday, April 26, 2006

 

PHP GOTCHAS

Call them obscure, call them pointless, call them "newb mistakes." Whatever you call them, you've more than likely been tripped up at some point in your PHP coding journey by seemingly odd or illogical behaviors of the language. With PHP being a loosely-typed language, funny things are bound to happen. PHP is an easy language to pick up for the casual coder--things should "just work." But not everyone comes into PHP development with a strong programming background, so here are some charming examples of ways PHP can trip you up if you aren't careful. Put on your thinking caps--here comes the science!

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

Yahoo! recently announced its new PHP Developer Center which can be found at: developer.yahoo.net/php and announced that many of their web services now return serialized PHP. You can read the announcement at developer.yahoo.net PHP developers will now be able to consume these web services even more easily than before.

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

You might have been in a situation before where you had a list of items in your database that needed to be output in a specific order. These items could be anything: perhaps a listing of your favourite movies or your favourite books. For whatever reason, you want them ordered in a custom way that can’t be determined automatically (such as alphabetical).

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/

This page is powered by Blogger. Isn't yours?