SimplytheBest PHP Scripts

The simply the best collection of PHP scripts

More tags

The 36 best PHP scripts
 

PHP sample code how to populate a jPlayer playlist from a MySQL database.

This PHP snippet receives the member ID from a form or from a link and retrieves the wanted data from the database, sends the e-mail and ends with one of two options.

An easy-to-use form mailer script in PHP that uses SendMail to send the entries in a form to a specified recipient. It is as easy as 1-2-3. There are so many options available to send email from a form that we have decided to provide more than one version, whereby each version has a specific way to parse data, define variables, and so forth. A version is included with a generated security code image to prevent spam and more.

To extract a random record from f.e. a MySQL table you can use this sample PHP code to get you going. The snippet uses rand() to generate a random number and LIMIT to select the record from the SQL table.

This PHP snippet shows you how to generate RSS Feeds from MySQL database records on the fly. Easy and straightforward.

PHP snippet to connect to a MySQL database using a file for the connection and an include statement in the page needing to connect.

A HTML DOM parser written in PHP5+ that lets you manipulate HTML in a very easy way. Find tags on an HTML page with selectors like jQuery. Supports invalid HTML.

SEOstats By: Stephan Schmitz
Free MIT Open Source

A powerful open source PHP library to request a bunch of SEO relevant metrics such as detailed backlink analyses, keyword and traffic statistics, website trends, page authority, Google Pagerank, the Alexa Trafficrank and much more.

This is a PHP snippet that shows how to extract the latest additions (What's New) from a MySQL table using PHP.

SimpleTest By: Marcus Baker
Free LGPLv2

A PHP unit test and web test framework with xUnit style test cases. It has support for SSL, forms, frames, proxies and basic authentication.