phpBender - PHP codes injection for Flash
Building a web based application using Flash and PHP is not a hard work anymore! phpBender as a gateway between your application’s user interface that built using Adobe Flash, PHP as your client server scripts and database server; enables you to inject your PHP codes directly into Flash, provides you a new way for both Flash – PHP programming and streamline your client-server traffic for efficient connections between your database and rich media application.
phpBender is a Flash component that provide an alternative way for both ActionScript and PHP programmer to create and build Flash – PHP application easily. Current version of phpBender allows you:
- To perform SQL queries (SELECT, INSERT, UPDATE, DELETE, etc) using built-in database class or custom PHP codes inside your ActionScript
- To write and inject custom PHP codes inside your ActionScript
- To call or execute custom PHP codes that located in external files
Specifications:
- Current version of phpBender built on ActionScript 2 (the development for ActionScript 3 is in progress)
- phpBender has been designed for PHP servers and currently working with PHP4 or 5 version and MySQL 4 or 5
How to install and use phpBender? Please read the documentations at tutorial, demo and FAQ!
phpBender distributed in a ZIP file that contain with two files; phpbender.swc is a Flash component and bender.php is a PHP compiler file which will be a gateway between your SWF file and MySQL database or compile your custom PHP codes into PHP server via web server.

- SQL Queries
When you are querying MySQL database, your SWF file that compiled with phpBender component will ask bender.php file to run your queries into MySQL and in a time will return the database queries results back into SWF file.
- Custom PHP Codes
When you are creating custom PHP codes, the communication process is between your SWF file and bender.php only. There are 2 ways to write and run your custom PHP codes:
- Write it directly inside your ActionScript
- Your PHP codes will be compiled together with your SWF file
- Require specific methods to write your PHP codes as there are any string limitations such as double quotes, single quotes (Please check knowledge base for further information)
- Write it in external files and execute it using phpBender built-in class
- Your PHP codes will not be compiled inside your SWF file
- You cannot delete the external files that contain with your PHP codes as they will be executed side by side with your SWF file
- There are no specific methods on writing your PHP codes as you can write your PHP codes normally
|