PHP Classes

Packages of Cristian Rusu

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Cristian Rusu (2)  >  Mission progress status  >  Reputation  
Picture of Cristian Rusu
Name: Cristian Rusu <contact>
Classes: 2
Country: Romania Romania
Age: 51
All time rank: 66414 in Romania Romania
Week rank: 195 Up3 in Romania Romania Up
All time users: 4487
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image DB Connect  
Query a database and fetch the result and metadata
This is a simple class that can connect to a MySQL database, execute an SQL query and retrieve the result set rows and the respective metadata.

The class get function executes an SQL query and returns status of success of the executed query, the number of rows, the number of columns, the total number or result cells, and the list of names of the result columns as part of the result set array. The metadata result fields are prefixed with & to avoid confusion with the result column names.

Depending on the number of rows and columns contained in the result set, it may contain a two dimension array with all the data of the result columns and rows, or just an array with the data of one column or one row, or just one result value.

  Files folder image File Searcher  
Search for files in directories recursively
This class is meant to execute searches for files inside a given directory.

The class can traverse directories recursively as an option.

It can search for files given a list of space delimited patterns that define extensions contained in the last 3 characters of the names of the files that are meant to be found. For instance, the pattern "txt htm" makes the class return for all files with the name ending in txt or htm.

As a result the class returns an array with the paths of all the files that were found during the search.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z