PHP 7.1.12 Released

PHP/FI Version 2.0

Table of Contents

  1. Brief History
  2. Installation Instructions
  3. So, what can I do with PHP/FI?
  4. CGI Redirection
  5. Security Issues
  6. Safe Mode
  7. Running PHP/FI from the Command Line
  8. HTTP Authentication
  9. Apache Request Variables
  10. Apache Module Notes
  11. Apache Module Configuration Directives
  12. FastCGI Support
  13. Access Control
  14. Access Logging
  15. Relative vs. Absolute URL's - or, Why do my Images Break?
  16. How PHP/FI handles GET and POST method data
  17. GD (a graphics library for GIF creation) Support in PHP
  18. PHP/FI and Virtual Hosts
  19. File Upload Support
  20. Cookie Support
  21. mSQL Support
  22. Postgres95/PostgreSQL Support
  23. mysql Support
  24. Solid Support
  25. Sybase Support
  26. Oracle Support
  27. Illustra Support
  28. Adabas Support
  29. Regular Expressions
  30. Escape Characters
  31. Octal notation of Unix file permissions
  32. PHP/FI Script Language
  33. Adding your own functions to PHP/FI
  34. Notes for Code Hacks

Brief History

PHP began life as a simple little cgi wrapper written in Perl. I wrote it in an afternoon during a period between contracts when I needed a quick tool to get an idea of who was reading my online resume. It was never intended to go beyond my own private use. The web server where I had my resume was extremely overloaded and had constant problems forking processes. I rewrote the Perl wrapper in C to get rid of the considerable overhead of having to fork Perl each time my resume was accessed.

Eventually other people on the same web server came across my wrapper and asked if they could use it. Then, as inevitably happens, they started asking for more features. I added more features and finally put together a semi-complete distribution along with documentation, a mailing-list and a FAQ. The name of this first package was Personal Home Page Tools, which later became Personal Home Page Construction Kit.

At the same time I started playing with databases and wrote a tool to easily embed SQL queries into web pages. It was basically another CGI wrapper that parsed SQL queries and made it easy to create forms and tables based on these queries. This tool was named FI (Form Interpreter).

PHP/FI version 2.0 is a complete rewrite of these two packages combined into a single program. It has now evolved to the point where it is a simple programming language embedded inside HTML files. The original acronym, PHP, has stuck. It isn't really appropriate any longer. PHP/FI is used more for entire web sites today than for small Personal Home Page setups. By whatever name, it eliminates the need for numerous small Perl cgi programs by allowing you to place simple scripts directly in your HTML files. This speeds up the overall per