Archive for October, 2009

Detect if a Date is a Holiday (Portuguese example)

Saturday, October 31st, 2009

Detect whether a a specific date is a holiday.

Tags: ,
Posted in Snippets | Comments Off on Detect if a Date is a Holiday (Portuguese example)

MB CopyMCF-DIR :: Copying or Moving Files and Child Files from Source Dir to Destination Dir

Saturday, October 31st, 2009

Copying or Moving Files and Child Files from Source Dir to Destination Dir

Tags: ,
Posted in Snippets | Comments Off on MB CopyMCF-DIR :: Copying or Moving Files and Child Files from Source Dir to Destination Dir

MySQLi access

Saturday, October 31st, 2009

Package:
MySQLi access
Summary:
MySQL database access using MySQLi
Groups:
Databases, PHP 5
Author:
Julie Duvillier
Description:
This package can be used to access MySQL databases using MySQLi.

The main class extends the MySQLi class : establish connection, execute SELECT, INSERT, UPDATE and DELETE queries from lists of parameters and get the fields of a table.
Exceptions of the class are handled by MySQLi_exception_class which extends the class Exception.

Other auxiliary classes deal with query results and prepare query statements.


Tags: ,
Posted in Classes | Comments Off on MySQLi access

Upcoming Bug Hunts!

Saturday, October 31st, 2009

As we near completion of the 2.9 milestone, it’s that time of dev cycle again, when we ask all you community developers who’ve been putting off contributing to core to dust off your dev environments and help us get closer to being release-ready. How? Bug hunts! Yes, that time-honored tradition (in the time of WordPress, anyway) of everyone pitching in to test patches and report the results, working on solutions to major bugs, and helping to clear out Trac has come around again, and we’re scheduling not one, but two bug hunts over the next couple of weeks to ensure that everyone has enough time to prepare and participate.

#1 – The first bug hunt of 2.9 will be Thursday through Saturday, November 5-7, 2009. This should give people a few days to plan for it, upgrade their dev environments if they haven’t been following trunk, and figure out how to allot their time. We’re stretching over both weekdays and weekend to try and accommodate everyone’s schedule.

#2 - The second bug hunt will be a week later, Saturday through Monday, November 14-16, 2009. This should make it possible for anyone who needs more than a week to set some time aside to participate. This bug hunt will coincide with WordCamp NYC, where a special Hacker Room will be set aside for people to go and work on 2.9 bug tickets alongside regular core contributors including Mark Jaquith and Matt Martz (sivel from IRC).

The Goals

Test, test, test existing patches! You can see all tickets with patches that need testing by checking this report. When you’ve tested a patch, report your results in the ticket comments, so core committers can see how the patch is faring.

Fix known bugs! You can see the bugs that need patches by checking this report. Look for the ones that seem that they’ll affect the most people or have the biggest impact by being fixed. Edge case bugs should be lower priority.

Report new bugs! As you’re testing out the development version, if you come across a bug, search trac to see if someone has reported it yet. If so, add a comment with your experience to the ticket so we’ll know it’s affecting more than one person. If no ticket exists yet, create one.

Core committers will be around (in the #wordpress-dev channel at irc.freenode.com) both weekends to review patches that have been thoroughly tested, answer questions as needed, and give feedback on patches that need more work before being commit-worthy.

If you’ve never participated in a WordPress bug hunt before, but you’d like to get involved, we’d love to have you join us! To prepare, you’ll want to set up a test environment, start using the current development version/maybe install the beta testing plugin, join us in the #wordpress-dev IRC channel, and read up on automated testing.

Tags:
Posted in Uncategorized | Comments Off on Upcoming Bug Hunts!

Simple XML Generator

Friday, October 30th, 2009

Package:
Simple XML Generator
Summary:
Create XML documents from arrays using SimpleXML
Groups:
Data types, PHP 5, XML
Author:
Marcos Timm Rossow
Description:
This class can be used to create XML documents from arrays using SimpleXML PHP extension.

The generated document and be displayed as the current script output.

It takes an associative array and traverses it recursively to add tags and data to the XML document.

The code and comments are in Portuguese.

In Portuguese:
Simples classe que gera um arquivo XML a partir de um Array Associativo


Tags: ,
Posted in Classes | Comments Off on Simple XML Generator

Executing multiple SQL statements stored in files

Thursday, October 29th, 2009

Package:
Executing multiple SQL statements stored in files
Summary:
Execute MySQL queries read from files
Groups:
Databases, Files and Folders, PHP 5
Author:
Boris Tetrev
Description:
This class can be used to execute MySQL queries read from files.

It can scan a given directory to retrieve the list of files it contains.

The class can read the file contents an execute the SQL statements contain in each line of the files.


Tags: ,
Posted in Classes | Comments Off on Executing multiple SQL statements stored in files

Executing multipple SQL statements stored in files

Thursday, October 29th, 2009

Package:
Executing multipple SQL statements stored in files
Summary:
Execute MySQL queries read from files
Groups:
Databases, Files and Folders, PHP 5
Author:
Boris Tetrev
Description:
This class can be used to execute MySQL queries read from files.

It can scan a given directory to retrieve the list of files it contains.

The class can read the file contents an execute the SQL statements contain in each line of the files.


Tags: ,
Posted in Classes | Comments Off on Executing multipple SQL statements stored in files

Nz-Mu

Thursday, October 29th, 2009

97x+S2 Kvieciamia visus prisijunkti

Tags:
Posted in Free PHP Scripts | Comments Off on Nz-Mu

devendra

Thursday, October 29th, 2009

Tags:
Posted in Free PHP Scripts | Comments Off on devendra

Secure SMTP client

Wednesday, October 28th, 2009

Connecting to Gmail and sending a message. (verbose output)
Package:
Secure SMTP client
Summary:
Send messages via SMTP server with authentication
Groups:
Email, Networking, PHP 5
Author:
wooptoo
Description:
This class can be used to send messages via SMTP server with authentication.

It can connect to a given SMTP server using SSL or TLS, and authentication using the LOGIN method.

It can send send a message with a given subject from a given address to a given recipient.


Tags: ,
Posted in Classes | Comments Off on Secure SMTP client