RSS feed - Using POG with Flex
- Optimizing your web application
- Regenerating large objects
- PHP4 or PHP5
- New and Improved
- Evolution of a cube
- POG Museum
- POG 3.0 alpha
- Initial Performance results Part 2
- Initial performance results
- Proposal: POG 3.0 object model
- Suggest a feature
- A new year, A new POG release
- Many-Many relations
- POG 2.5 Released
- POG 2.5 beta
- Automatic table alignment
- New version: 2.1.2 released
- RSS should work well now
- RSS feed glitches
- What's new in 2.1.0
- PHP Objects 2.1.0 (preview)
- PHP Object relations FAQ
- PHP Object Relations
- Searching base64 encoded text
- How to debug POG-generated objects
- POG UI Tips
- Featuring Of Interest links
- PHP CRUD
- POG 2.0.1: A better code generator
- A look at the POG SOAP API
- POG 2.0.0 released
- Coming soon: Generate parent-child objects
- Generated abstraction v/s dynamic abstraction
- Zend Framework preview
- Coming soon: Generate Objects through SOAP
- Easily save images and files to a database
- PHP, Paypal & POG
- Five advanced Code Generator tips
- PHP Pagination using generated objects
- PHP Code Generator benchmarks
- Representing database objects using an AJAX Tree interface
- Using SETUP in a production environment
- Description of the generated object package
- Introducing PHP Object Generator version 1.6
- Using AJAX and PHP Object Generator
- When to use Object->SaveNew()
- Generating PHP objects in 2006
- Happy Holidays
- A short video of the POG Setup process
- A sneak peek at POG 1.6
- POG Tip: Field limits
- Previous versions.
- Searching the blog and tutorials sections
- Generating code with "Other" SQL data types
- Five general POG tips
- POG source code locations
- Microsoft SQL 2005 Express Edition
- Impatiently awaiting PHP 5.1 and PDO
- Php Object Generator goes open source
- POG generates PDO compatible code
- Oracle to offer free database
- POG Google group
- Database Wrappers and POG
- Revisions
- The generator blog
- An explanation of the 'Escape' function.
- Mirror, mirror
- Using POG to solve real world problems
- A php object-relational database tool
- A simple and flexible Object Oriented approach to PHP
Back to the Code Generator
The POG Google group
The POG tutorials/code samples
The POG mirror site
Using SETUP in a production environment
written 1497 days agoPOG SETUP has been designed to be used both in a testing and production environment. However, in a production enviroment, there are a few provisions:
Make sure you rename the setup folder to something harder to guess so that it won’t be accidentally “discovered” by anyone who shouldn’t gain such access to your data. For added protection, you can even password protect the setup directory using an .htaccess file:
Create a text file called .htpasswd and paste the following in it:
username:password
Replace username and password with your desired values.
Next, create a text file called .htaccess and paste the following in it:
AuthName “POG Setup”
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user
Edit /full/path/to/.htpasswd to reflect the absolute path to the htpasswd. Finally, simply place the .htpasswd on your server and put the .htaccess file in the setup folder.
For more information on password protecting directories, you can ask Google
Also, please remember that each time you run SETUP, POG performs some unit tests on all your objects/tables; which means that some objects are inserted, updated, and deleted during the diagnostic phase. During that phase, we’ve made sure that SETUP deletes only those test objects and leaves any original data untouched. So, running SETUP on tables that already contain data should not cause any issues.
However, if you’re dealing with critical data that you absolutely cannot afford to lose, we’d strongly recommend that you back up your table(s) before running setup. In some extreme and unforeseen cases, something just might go wrong and we wouldn’t want you to lose any data because of POG. That would be totally uncool.

This is a weblog about the Php Object Generator (POG) project, OO PHP, databases and Php code generators in general.
Php Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.
Subscribe to our RSS feed
Feedback, Feature Requests, Bugs to:
The POG Google group
Send us a Hello through email