background preloader

PHP

Facebook Twitter

Zebra_Form, a jQuery augmented PHP library for HTML form building and validation. Zebra_Form, a jQuery augmented PHP library for creating and validating HTML forms. Get the latest updates on this PHP library via RSS Zebra_Form is a PHP library that simplifies the process of creating and validating HTML forms. Its object-oriented structure promotes rapid HTML forms development and encourages developers to write clean and easily maintainable code. It frees the developers from the repetitive task of writing the code for validating forms by offering powerful built-in client-side and server-side validation. Zebra_Form has integrated cross-site scripting (XSS) prevention mechanism that automatically strips out potentially malicious code from the submitted data, and also features protection against cross-site request forgery (CSRF) attacks. It also prevents automated SPAM posts, out of the box and without relying on CAPTCHA by using honeypots. Forms layout can be generated either automatically or manually – using templates.

The client-side validation is done using jQuery 1.5.2+ Features review Requirements jQuery 1.5.2+ Installation How to use Live demos The HTML. Profiling Your Site | PyroCMS Documentation. Show_404() Not working in 3rd party module · Issue #1511 · pyrocms/pyrocms. Streams API Streams Driver | PyroCMS Documentation. The streams driver is used to create and manipulate streams. Remember, streams represent tables of data in the database, so when you are creating and manipulating streams, you are creating and manipulating database tables. You can call the streams driver like this: Preset Fields↑ When you create a stream, the following fields are created automatically: The add_stream function allows you to create a stream.

Parameters↑ Example:↑ In this example we add the "FAQ" stream. Gets data about a stream. Example:↑ Returns: Note: The view options column is an array of the columns that are shown when listing entries in a table. Gets basic data about all the streams in a namespace. Example:↑ Allows you to update basic stream metadata. Example:↑ Deletes a stream. This streams returns true or false, based on whether the streams was successfully deleted. Example:↑ Gets assignments for a stream. Example:↑ Ion Auth Docs. Ion Auth is a simple and lightweight authentication library for the CodeIgniter framework If you're reading this then you'll probably want to know that I'm writing a book on Building Secure PHP Apps. It's now available for early access on Leanpub: Learn More / Buy License Ion Auth is released under the Apache License v2.0.

Installation Download the latest version: Copy the files from this package to the correspoding folder in your application folder. The default login is: Email: admin@admin.com Password: password Loading Ion Auth You load Ion Auth just link any other library: $this->load->library('ion_auth'); You can also autoload the library. Configuration Options Ion Auth is extremely configurable. Using Config File To change configuration options simply edit the config/ion_auth.php file. Config Edit the ion_auth $config array as needed: 'tables['groups']' - The table name to use for the groups table. Login() Parameters Return boolean.

PHP performance tips - Make the Web Faster. Author: Eric Higgins, Google Webmaster Recommended experience: Beginner to intermediate PHP knowledge PHP is a very popular scripting language, used on many popular sites across the web. In this article, we hope to help you to improve the performance of your PHP scripts with some changes that you can make very quickly and painlessly. Please keep in mind that your own performance gains may vary greatly, depending on which version of PHP you are running, your web server environment, and the complexity of your code.

Profile your code to pinpoint bottlenecks Hoare's dictum states that Premature optimization is the root of all evil, an important thing to keep in mind when trying to make your web sites faster. Upgrade your version of PHP The team of developers who maintain the PHP engine have made a number of significant performance improvements over the years. Use caching Use output buffering PHP uses a memory buffer to store all of the data that your script tries to print. Produces: Ini_set. Drupal Theme Generator. Symfony Components - Standalone libraries for PHP. Beside being a full-stack framework, Symfony is also a set of decoupled and standalone components. What is a Component? Symfony Components implement common features needed to develop websites. They are the foundation of the Symfony full-stack framework, but they can also be used standalone even if you don't use the framework as they don't have any mandatory dependencies.

Installation You can install each component in many different ways: Recommended Install it via Composer (symfony/dashed-component-name on Packagist). For instance, to install the HttpFoundation component: With Composer With Git git clone --branch 2.4 vendor/ With PEAR pear channel-discover pear.symfony.com pear install symfony2/HttpFoundation The Components.

Online Games

Testing with PHPUnit and Selenium -- NetBeans IDE Tutorial. NetBeans IDE for PHP supports PHPUnit automated tests. Thanks to PHPUnit, NetBeans IDE provides code coverage for PHP, similar to the code coverage the IDE provides for Python. Test output appears in the same feature-rich output window that the IDE's JUnit and Python test runners use. NetBeans IDE also supports the Selenium portable test framework, in combination with PHPUnit. A Selenium plug-in is available from the Update Center. Installing this plugin adds a Selenium server to the IDE's registered servers and adds Selenium test options to the PHP menus.

Contents To follow this tutorial, you need the following software and resources. Installing PHPUnit Use PEAR to install PHPUnit as described in the PHPUnit documentation and PHPUnit's Skeleton Generator as described in the Skeleton Generator documentation. To check that NetBeans IDE recognizes your PHPUnit installation, open Tools > Options (On Mac, open NetBeans Preferences) and look at the PHP window. Creating and Running PHPUnit Tests. CoffeeScript. Thank you for downloading. The free encyclopedia. Yahoo! Smush.it™ PHP/MySQL. PHP/MySQL.