Archive for June, 2007

shagaConfigurator

Saturday, June 30th, 2007
Package: shagaConfigurator
Summary: Get application options from configuration files
Groups: Configuration, PHP 5
Author: Arthur Tumanyan
Description: This class can get application options from configuration files.

It can read options from a configuration file named shaga.cfg.example defined in a custom format.

The configuration options are read into a bi-dimensional associative array class variable according to the options sections and names.

ldap_class

Saturday, June 30th, 2007
Package: ldap_class
Summary: Retrieve user information from an LDAP server
Groups: Databases, Networking
Author: Aleck
Description: This class can be used to access data in LDAP server.

It can connect to an LDAP server authenticating with a given account.

The class can perform LDAP queries to obtain information about a given user.

The front page has changed

Saturday, June 30th, 2007

The news on the front page of php.net has changed, the conference announcements are now located on their own page. The idea is to keep php.net specific news clear and also opens the door for additional news entries, like for RC releases. More changes are on the way so keep an eye out.

Review: Build Your Own Website the Right Way Using HTML & CSS

Saturday, June 30th, 2007

“A review of the SitePoint book “Build your own website the right way using HTML & CSS” “

Text Helper Class

Friday, June 29th, 2007
Package: Text Helper Class
Summary: Perform several types of text processing operation
Groups: Databases, HTML, PHP 5
Author: Chris Lam
Description: This class can be used to perform several types of text processing operations. It can:

- Capitalize the first letter of all words of string
- Count the number of non-whitespace characters, words, sentences in a string
- Encode strings for displaying as HTML, in URLs, escaping quotes, as hexadecimal, as Javascript strings, and obfuscate e-mail addresses
- Exclude given words from a string
- Highlight PHP code
- Indent strings
- Limit the length of a string in number or words or characters
- Strip consecutive whitespace characters
- Word wrap strings

Lista Paginacao Class

Friday, June 29th, 2007
Package: Lista Paginacao Class
Summary: Show MySQL query results in lists split in pages
Groups: Databases, HTML, PHP 5
Author: custodio
Description: This package can be used to display MySQL query results split in multiple pages.

It executes a given MySQL query and displays the results in HTML tables. Navigation links are displayed to browse the listing that may be split in multiple pages, each displaying a limited number of records.

The odd and even rows are displayed with different background colors. Rows are highlighted with a different color when the user drags the mouse over them.

A checkbox input may be displayed on each row to select rows and submit them with to another page for processing, for instance to delete the selected rows.

When the user clicks on the table header title links, the listing is redisplayed sorting the query results by the click column, in ascending or descending order.

The code and comments are in Portuguese.

In Portuguese:

Está é uma classe que lista os resultados de um SQL em tabelas HTML. O banco de dados usado é o MySQL.

Esta classe exibe a listagem de forma agradavél formatada por arquivos CSS e Javascript.

Ao passar o mouse sobre uma linha esta muda de cor ficando diferente da demais linhas. As linhas pares são de cor diferente das linhas ímpares.

Há um ckeckbox que você pode marcar várias linhas e enviar as ID do registros a página, por exemplo para deletar várias linhas.

Ao clicar sobre o título da Colunas os registros são ordenados por exta coluna ao clicar nesta mesma coluna ela muda o tipo de ordenação: crescente e descrescente.

GNU/GPL Version 3 Released

Friday, June 29th, 2007

Elizabeth Naramore writes: After eighteen months and four public drafts, the long-awaited version 3 of the GNU/GPL License is finally here. According to the press release on the Free Software Foundation site, collaboration was a key ingredient to making the license as practical and useable as possible.

“By hearing from so many different groups in a public drafting process, we have been able to write a license that successfully addresses a broad spectrum of concerns. But even more importantly, these different groups have had an opportunity to find common ground on important issues facing the free software community today, such as patents, tivoization, and Treacherous Computing,” said the Foundation's executive director, Peter Brown.To see the GPLv3 in all its glory, you can view the full document, and to show your support and usage of the new license, be sure to grab an icon from the FSF's blog post announcing the release.

Review: Build Your Own Website the Right Way Using HTML & CSS

Friday, June 29th, 2007

“A review of the SitePoint book “Build your own website the right way using HTML & CSS” “

BlogSecurity.net: Interview with Stefan Esser on WordPress

Friday, June 29th, 2007

On the PHP Security Blog today, Stefan Esser points out an interview he did with BlogSecurity concerning the current state of security on the WordPress software.

In the Interview they talk about several different aspects and securityrelated concerns including:

a previous critical SQL injection vulnerability in WordPress
Esser’s general thoughts on the software
his recommendations for the WordPress team
improvements and suggestions for other blogging software he has

Check out this post on the BlogSecurity site for the complete interview.

PHPBuilder.com: AJAX and PHP Part 2 - XML Communication/Processing

Friday, June 29th, 2007

PHPBuilder.com has posted part two of their look at combining Ajax and PHP. They take things a step further than last time and look at the actual communication between the script and the server.

AJAX and PHP 5 both have powerful features for processing and using an XML document. XML is a method of formatting data often for communication purposes between different computer systems. In this article, we will show you how to access an XML document with AJAX!

They create a script that can load the XML information from a file and echo it back out to the waiting client script. They also include the other half the clientside javascript that grabs the XML information, parses it, and pushed it into a javascript object for easy access.