php function reference 0.9.6.2b

php function reference 0.9.6.2b

Sponsored Links
Sponsored Links

php function reference 0.9.6.2b

No.
Title
Catelory
Price
License
Expand All
1
Programming -> Libraries
Perl Artistic License
Getopt::Function is a Perl module to provide mixed options with help information.

SYNOPSIS

use Getopt::Function qw(maketrue makevalue);
$::opthandler = new Getopt::Function
[ ], { => [ , ,
] }
$result = GetOptions (...option-descriptions...);
$::opthandler->std_opts;
$::opthandler->check_opts;

The aim of this module is to make it easy to provide sophisticated and complex interfaces to commands in a simple to use and clear manner with proper help facilities.

It is designed to do this by making it possible to write the options, with documentation and subroutines to implement them, directly into a hash and then call the appropriate ones as options detected on the command line.

2
Internet -> HTTP
GPL GNU General Public License
W3C-PHP is a little php-cli script that can validate a list of URLs trough the W3C validator Web site (http://validator.w3.org/) with PHP-DOM functions.

Configuration:

list.txt -> contain the list of url that you need to validate
the URLs must start with ":" without the "http://" prefix
for exaple...
:www.nasa.gov
:www.google.com

With the #FOLLOW# option you can validate the internal link of a site
you can active that option with:
:www.pippo.com#FOLLOW#

check.php -> php script that contain the source code
PLEASE CHECK IF YOUR PHP BIN ARE IN /usr/bin/php
IF NOT, EDIT THE FIRST LINE OF check.php
For exaple if you have installed php from Yast on Suse
probably you have the php bin in /usr/bin/php5
for execute the script you need to edit the first line of check.php
or make a link with "ln -s /usr/bin/php5 /usr/bin/php"

3
Miscellaneous -> Information-Management
GPL GNU General Public License
Web Reference Database is a bibliographic manager that can import and export references in various formats (including BibTeX, Endnote, MODS XML, and OpenOffice).

It can make formatted lists of citations in HTML, RTF, PDF, or LaTeX, and offers powerful searching, rich metadata, and RSS support

Whats New in This Release:

· This release offers major function enhancements and bugfixes.
· Batch import from various bibliographic formats (including BibTeX, Endnote, RIS, ISI, and MODS XML) is now supported, as is import from a PubMed ID.
· An OpenDocument spreadsheet for use with OpenOffice.org can be exported, and formatted citation lists can be generated as HTML, RTF, PDF, or LaTeX. An SRU/W service and support for unAPI, OpenURL, and COinS metadata have been added.
· These allow the data to be used by the next generation of bibliographic clients.
· A new command line client is also included.

4
Programming -> Libraries
LGPL GNU Lesser General Public License
CoreLinux++ Function Load Library (libclfll++) takes advantage of the abstract Library Load framework in the CoreLinux libclfw++ library by providing management of loading Linux shared libraries.

Application developers define function objects as wrappers and can then dynamically load the functions. It is very useful for implementing a framework for plug-ins.

Here are some key features of "CoreLinuxplusplus Function Load Library":

· Enlist members ( for requirements, analysis, design, and development )
· Formalize conventions for Object Oriented Analysis (OOA) and Design (OOD).
· Formalize standards and conventions for C++ code style.
· Gather requirements. Perform OOA and OOD using UML as the modeling language.
· Implement designs and example drivers.
· Develop utilities and applications for Linux that are CoreLinux++ certified
· Showcase CoreLinux++ certified applications by others

5
Programming -> Libraries
Perl Artistic License
PHP::Strings is a Perl module to implement some of PHPs string functions.

SYNOPSIS

use PHP::Strings;

my $slashed = addcslashes( $not_escaped, $charlist );
my $wordcount = str_word_count( $string );
my @words = str_word_count( $string, 1 );
my %positions = str_word_count( $string, 2 );
my $clean = strip_tags( $html, );
my $unslashed = stripcslashes( abfnrxae );

PHP has many functions. This is one of the main problems with PHP.

People do, however, get used to said functions and when they come to a better designed language they get lost because they have to implement some of these somewhat vapid functions themselves.

So I wrote PHP::Strings. It implements most of the strings functions of PHP. Those it doesnt implement it describes how to do in native Perl.

Any function that would be silly to implement has not been and has been marked as such in this documentation. They will still be exportable, but if you attempt to use said function you will get an error telling you to read these docs.

6
Miscellaneous -> Education
GPL GNU General Public License
PHP Runner project is a Web-based program for editing and previewing PHP files.

PHP Runner is a simple but useful program for easily previewing a PHP file without saving or uploading it to a server.

It has a friendly interface with useful tools such as buttons for the most frequently used PHP functions to make scripting easier and faster.

Here are some key features of "PHP Runner":

· Runs PHP codes of your page without saving or uploading them on server.
· Helps to insert easily most used PHP functions. Very easy installation and using.

7
Internet -> HTTP
The PHP License
PHP pam_auth is a basic extension to allow you to authenticate users using PHP via PAM. PHP pam_auth contains only one function, pam_auth(), which will return true or false. It is meant to provide simple authentication without hassle.

8
Programming -> Libraries
Public Domain
upgrade.php is a PHP script that can help you to use all features from newer PHP versions (up to 5.2 currently) without losing compatibility to older interpreters and outdated webserver setups. It takes care of emulating any functions (with their original names) that are missing at runtime.

You simply include() it into your applications and are from then on freed from thinking about backwards compliance and wasting time with workarounds instead of simply using the more powerful PHP functions.

Following functions are currently emulated:

json_encode · json_decode · strptime · error_get_last · preg_last_error · lchown · lchgrp · gzdecode · ob_get_headers · xmlentities · stripos · strripos · str_ireplace · get_headers · headers_list · fprintf · vfprintf · str_split · http_build_query · convert_uuencode · convert_uudecode · scandir · idate · time_nanosleep · strpbrk · php_real_logo_guid · php_egg_logo_guid · php_strip_whitespace · php_check_syntax · get_declared_interfaces · array_combine · array_walk_recursive · substr_compare · spl_classes · class_parents · session_commit · dns_check_record · dns_get_mx · setrawcookie · file_put_contents · file_get_contents · fnmatch · glob · array_key_exists · array_intersect_assoc · array_diff_assoc · html_entity_decode · str_word_count · str_shuffle · get_include_path · set_include_path · restore_include_path · str_rot13 · array_change_key_case · array_fill · array_chunk · md5_file · is_a · fmod · floatval · is_infinite · is_nan · is_finite · var_export · strcoll · diskfreespace · disktotalspace · vprintf · vsprintf · import_request_variables · hypot · log1p · expm1 · sinh · cosh · tanh · asinh · acosh · atanh · array_udiff_uassoc · array_udiff_assoc · array_diff_uassoc · array_udiff · array_uintersect_uassoc · array_uintersect_assoc · array_uintersect · array_intersect_uassoc · mime_content_type · image_type_to_mime_type · image_type_to_extension · exif_imagetype · array_filter · array_map · is_callable · array_search · array_reduce · is_scalar · localeconv · call_user_func_array · call_user_method_array · array_sum · constant · is_null · pathinfo · escapeshellarg · is_uploaded_file · move_uploaded_file · strncasecmp · wordwrap · php_uname · php_sapi_name

Whats New in This Release:

· This release includes PDO emulation for PHP 4.x.
· This new unified PHP5 standard database interface prevents SQL injection exploits if you use its prepared statements instead of error-prone string concatenation and manual escaping.
· Other changes include more detailed phpDoc-style comments in the main script, and file_put_contents() support for the file locking flag.
· The emulated json_decode() function now supports Unicode escapes and still remains five times faster than JSON.php or the Zend_Framework decoder.

9
Programming -> Libraries
GPL GNU General Public License
PHP ClamaAV Lib is a PHP extension that allows you to incorporate virus scanning features in your PHP scripts.

It uses the Clam Antivirus API (libclamav) for virus scanning. There are supported functions for file scanning and buffer scanning.

Functions Reference:

string cl_scanfile(string filename);

Description:

Scan a file given a filename.

Parameters:

filename: the absolute / relative path to the file.

Return value:

Returns the name of the virus if this is found and returns null when no virus is found.

cl_scanfile_ex(string filename, int options, string virusname, int retcode);

Description:

Scan a file given a filename (extended version), it supports the ClamAV scanning options and returns the virusname and return code of the cl_scanfile() API function.

Parameters:

filename: the absolute / relative path to the file.
options: ClamAV scanning options.
virusname: This parameter is used to retrieve the virusname if a virus was found.
retcode: This parameter is used to retrieve the return code of the cl_scanfile API function.

string cl_scanbuff();

Description:

Scan a file given a string buffer.

Parameters:

buffer: string buffer to be scanned.

Return value:

Returns the name of the virus if this is found and returns null when no virus is found.

string cl_scanbuff_ex(string buffer, int size_buffer, string virusname, int retcode);

Description:

Scan a file given a string buffer (extended version), returns the virusname and return code of the cl_scanfile() API function..

Parameters:

buffer: string buffer to be scanned.
size_buffer: size of the buffer.
virusname: This parameter is used to retrieve the virusname if a virus was found.
retcode: This parameter is used to retrieve the return code of the cl_scanfile API function.

string cl_pretcode(int retcode);

Description:

Translates the ClamAV return code.

Parameters:

retcode: The return code of a cl_scanfile_ex(filename, options, virusname, retcode) or cl_scanbuff_ex(buffer, size_buffer, virusname, retcode) function.
Return value:

Returns a string with the return code description.

Compatibility functions:

string clam_scan_buffer(string buffer);
string clam_scan_file(string filename);
string clam_get_version();
10
Programming -> Libraries
GPL GNU General Public License
Expose PHP template engine is a template engine written in PHP. A template is a special kind of document that describes how a page will look like. How does this differ from writing webpages/applications using ordinary PHP files?

A template does not contain code to fetch data from a database or deal with forms. It only contains code how this data is transformed to HTML.

Some reasons to use the Expose template engine:

· Application logic and presentation is separated. It makes your code much more beautiful and manageable.
· Templates are fed only the parameters you specifiy and support only a subset of native PHP functions. This means safer code and your designers will be happier, because they dont have to inject their HTML in application code.
· Expose supports server- and client-sided caching. This will considerably cut down on server/database load and reduces bandwidth.
· Expose has built-in locale support. Translators can work with separate files and never need to touch application files or templates. Writing applications in multiple languages has become easier than ever before!
· Plugins simplify common tasks like inserting a select box or date picker in your page.
· The template script language is based on PHP, which means you dont have to learn a new language.

Whats New in This Release:

· The Boolean "and" (&&) operator is now properly recognized.
· Several array PHP functions are now registered at default.
· The first newline after the close tag (?>) is now stripped like expected.
· The built-in display() template function now correctly passes additional parameters to the included template.

11
Database -> Database-APIs
GPL GNU General Public License
MySQL PHP to PostgreSQL is an application that takes a php page that uses mysql calls and changes them into PostgreSQL calls.

This allows any website (if it converts properly) that was written in PHP for MySQL to run as a website written to run on PostgreSQL.

· Step 1: Download and uncompress

To uncompress simply type: tar xvzf mysqlphp2postgres.tar.gz

If youre on a non-GNU system you might have to type: gzip -dc mysqlphp2postgres.tar.gz | tar xvf -

· Step 2: Compile

To compile simply type: make

If youre on a non-GNU system youll have to edit the make file to change the compiler to cc instead of gcc

· Step 3: Install

Type: make install

This will simply copy the binary file to /usr/local/bin/

· Step 4: Convert

Type: mysqlphp2postgres inputfile.php outputfile.php

The input file is the php page that uses mysql. The outfile is the page you want to create. You will probably need to tell mysqlphp2postgres the name of the postgreSQL database since mysql_select_db doesnt translate. You can do this by using a -d switch. So if, for example, the database youre connecting to is called blah, you could type: mysqlphp2postgres -d blah inputfile.php outputfile.php

Problems:

I have had the following problems from using this program:
MySQL has a lot more functions in PHP than PostgreSQL that do more things. I havent had a problem with any unsupported functions in my programs, but someone probably will. If you want to help write code for this to support those functions (if thats even possible) feel free to help.

Whats New in This Release:

· Fixed some stuff.
· Cleaned up some code.
· This program now produces code optomized for PHP 4.1.0 and above.

12
Programming -> Preprocessors
LGPL GNU Lesser General Public License
ippfp is an easy-to-use library which provides oo-methods for creating and rendering user interfaces in PHP independently from output format. It features HTML, GTK, PDF and ncurses.

You can create input masks such as forms for databases or other user interfaces. ippfp features abstraction, elements can be accessed like data structures, they have values and various attributes.

For me ippfp is a construction kit to build software quickly.
Another purpose could be the automatically generation by software.

You can select one of these packages to display:

· HTML
· PDF
· GTK
· ncurses

Available elements:

· button
· checkbox
· choice
· fopen (file open)
· grid
· image
· label (readonly text)
· link
· multiplechoice
· password
· radio
· text
· textarea
· table

The library puts the elements together in a frame. For HTML a HTML page will be created which contains the elements, GTK and ncurses have appropriate windows. The data of elements will be stored in session variables.

One does not need to care for details of formats like HTML-tags or GTK-classes. For navigating within a program the button element should be used. To arrange elements the elements "grid" or rather "table" are the right choices.

Elements are created with the "create"-functions which are members of the ippfp main instance and returns objects respective to the goal. To make them visible they will be grouped in a "view" which will be given to the ippfp main instance for processing.

This is a flexible way because an existing element can be used in several views. Thus, elements will be included by reference, not by copy. The advantages are: if an element is in a state, it is independent from the current view and related informations are available globally.

For example: create a text element:

$myText = $ippfp->createText("default", 20, "my_text");
...
echo $myText->getValue();


Your code should be organised into php functions. For example if a button is used, it calls the function given as attribute. It is expedient to integrate your views into this functions.

Whats New in This Release:

· switched from html to xhtml, format identifier is XHTML
· a simple debug function added, for internal debugging, writes messages into a file (usefull for ncurses)
· pdf passes the "tabellentest", tables and grids can extend over a big number of pages, and can contain big text
· some bugfixes in xhtml and pdf

13
Programming -> Code-Generators
FDL GNU Free Documentation License
14
Programming -> Libraries
GPL GNU General Public License
PHPLiveX is a class that can be used to call PHP functions from Javascript in Web pages using AJAX.

The project generates Javascript code that implements functions with the same names and function arguments as a given list of existing PHP functions.

When the generated Javascript functions are called, they start AJAX requests to invoke the respective PHP functions on the server.

15
Internet -> HTTP
The PHP License
SAPRFC is a extension module for PHP 4 and PHP 5. SAPRFC can call ABAP function modules in SAP R/3 from PHP scripts.

You can use the powerful PHP language to create a web applications or interface programs with a connectivity to the SAP R/3.

You can also write RFC server program in PHP and call PHP functions from SAP R/3.

Here are some key features of "SAPRFC":

· Non-Unicode SAP R/3 release above 4.0B supported (it may be work for earlier versions but it hasnt been tested)
· use RFC (Remote Function Call) API to make call
· discover interface of a function module
· map RFC types to PHP strings
· server API for calling PHP functions from ABAP
· support for transactional RFC (client and server)
· portability: except ZEND API and RFC API use only a few standard C functions
· delivered with the test script saprfc_test.php that has the similar function as "Single Test" option in SE37 transaction (Function Builder).

16
Programming -> Libraries
Perl Artistic License
Math::Amoeba is a Multidimensional Function Minimization.

SYNOPSIS

use Math::Amoeba qw(ConstructVertices EvaluateVertices Amoeba MinimiseND);
my ($vertice,$y)=MinimiseND(@guess,@scales,&func,$tol,$itmax,$verbose);
my @vertices=ConstructVertices(@vector,@offsets);
my @y=EvaluateVertices(@vertices,&func);
my ($vertice,$y)=Amoeba(@vertices,@y,&func,$tol,$itmax,$verbose);

This is an implementation of the Downhill Simpex Method in Multidimensions (Nelder and Mead) for finding the (local) minimum of a function. Doing this in Perl makes it easy for that function to actually be the output of another program such as a simulator.

Arrays and the function are passed by reference to the routines.

The simplest use is the MinimiseND function. This takes a reference to an array of guess values for the parameters at the function minimum, a reference to an array of scales for these parameters (sensible ranges around the guess in which to look), a reference to the function, a convergence tolerance for the minimum, the maximum number of iterations to be taken and the verbose flag (default ON). It returns an array consisting of a reference to the function parameters at the minimum and the value there.

The Amoeba function is the actual implementation of the Downhill Simpex Method in Multidimensions. It takes a reference to an array of references to arrays which are the initial n+1 vertices (where n is the number of function parameters), a reference to the function valuation at these vertices, a reference to the function, a convergence tolerance for the minimum, the maximum number of iterations to be taken and the verbose flag (default ON). It returns an array consisting of a reference to the function parameters at the minimum and the value there.

The ConstructVertices is used by MinimiseND to construct the initial vertices for Amoeba as the initial guess plus the parameter scale parameters as vectors along the parameter axis.

The EvaluateVertices takes these set of vertices, calling the function for each one and returning the vector of results.

EXAMPLE

use Math::Amoeba qw(MinimiseND);
sub afunc {
my ($a,$b)=@_;
print "$at$bn";
return ($a-7)**2+($b+3)**2;
}
my @guess=(1,1);
my @scale=(1,1);
($p,$y)=MinimiseND(@guess,@scale,&afunc,1e-7,100);
print "(",join(,,@{$p}),")=$yn";

produces the output

(6.99978191653352,-2.99981241563247)=1.00000008274829

17
Programming -> Libraries
Free for noncommercial use
PHP HTML Graph Class is a class for drawing vertical bar graphs using only HTML and CSS. Simple and grouped bars can be created. You can change everything regarding the looks as the output is template-driven.

On the fly, you can change the size of graph, the color of all or individual bars, add labels, a title, and footnotes, or customize the CSS style of all elements. The width and height of bars can be specified in pixels or percentages. The code is heavily documented.

Whats New in This Release:

· In some PHP versions, there were some issues regarding passing variables by reference.
· The class would produce no output (nor errors) in PHP versions lower than 5 due to the different implementations of PHPs get_class() function in these versions.

18
Internet -> HTTP
Public Domain
Captcha PHP is a PHP class library that works without cookies. It is extremely easy to integrate into existing sites and your < form > processing logic. And it requires no database.

It strives to be more user-friendly. It gives visual feedback while you enter a solution (AJAX). And it accepts a few misguessed letters. Additionally it has an accessible riddle built in, optional modules and many configuration settings.

Integration:

On a page that contains a form (maybe even just a login or registration mask), you simply call the ::form() function to get a CAPTCHA image and input box generated, after you did include() the "captcha.php" file:

19
Miscellaneous -> Information-Management
GPL GNU General Public License
PHP iAddressBook is an address book for a single user that aims at 100% compatibility with the AddressBook application in Mac OS X.

PHP iAddressbook provides a very intuitive interface and a powerful search function similar to that found in Apples AddressBook. You can import and export your contacts using the vCard format.

The Import/Export functions work completely transparent meaning that all data entered in the addressbook is exported to the vCard and can be imported again.

Here are some key features of "PHP iAddressbook":

· contact fields (99.8%) identical to AddressBook.app in Mac OS X (click here for details)
· add/edit/view contacts
· search/filter contacts
· template support
· multilanguage support
· transparent vCard import/export
· supports photos in contacts
· uses ADOdb Database Abstraction Library to access MySQL, PostgreSQL and others

Whats New in This Release:

· This release adds Skype support, advanced access controls, an alphabet to quickly filter contacts that begin with the same letter, custom labels for phone numbers, email messages, URLs, related names, and instant messaging handles, an option to change the image format in vCard exports, and support for phonetic firstname/lastname (for Japanese users).
· It improves importation of non-RFC-compliant vCards.
· The contact list can now be divided into several subpages.
· The search function now supports multiple keywords.

20
Internet -> HTTP
GPL GNU General Public License
Php-MultiShop is a CMS & e-Commerce System, an OpenSource platform to realize a virtual mall that includes various shops and contents.

The user will have a global vision of the portal, to read the most interesting content (news, forums, curiosities, suggestions, reviews, cultural or commercial events, fairs, recipes, tourist itineraries,...) and will have the possibility to visit the shop desired. Php-MultiShop project can be used as a portal for any type of content (such as news, forums, events, etc.) and one or many independent shops.

Every shop will have all the functions and the personalization of a traditional e-commerce web-site, as if it were independent from the virtual mall. It will have its own internet domain and could be administrated in full autonomy by its own administrator.

At the same time, it can be distinct from the mall and other shops thanks to the personalized graphics, individual style, organization, contents and products, like every shop in a real market place.

Besides, being part of a large place able to attract different typologies of visitors and consumers, it will be visible and more easily findable, increasing its audience and potential market.

Php-MultiShop is written in PHP, run on Apache webserver and MySQL database server, and is able to run on any PHP and MySQL environmen, including Linux, Solaris, BSD, Mac OS X, and Microsoft Windows environments.

Whats New in This Release:

· Changes many files/functions of previous versions.
· Creates a function to manage the Currencies.
· Adds functions to increase performance.
· Upgraded to PHPNuke 7.8 and Security Patch 3.1.
· Adds a long description of the functions of the Multi-Shop admin module: a guide online to explain how to manage this module.
· Improves the Web installers.
· Contains some other minor cleanups, fixes, and improvements.

My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD