This is an example code for getting PostgreSQL metadata from its system tables. I've seen several metadata functions that are not using PostgreSQL system tables, so I posted
this. This function can get metadata MUCH faster than using many pg_Field*().
Tired with adding quotes around vars for SQL query? Do you want to make sure supplied values are valid for fields? Do you want to use database default value, if user send no
values and default value is defined for the field? Then this function might be useful.
This is HTML file with JavaScript to ensure Cookie and JavaScript is enabled. This file also can use for fall back to URL mode session. Many sites currently on the net will not
work properly without Cookie and JavaScript. If your site does not work without JavaScript or Cookie, this may be useful.
If you are sure that GET/POST/COOKIE values are not modified by user, you may be able to reduce lots of overhead for checking values. This function provide means to make sure
GET/POST/COOKIE values that are set by PHP programmer are not modified by users.
Simple reguler expression test page for both PHP and JavaScript. Now it supports both ereg() and preg_match(). Changed JavaScript test result is look similar to PHP's test
result. (It displays entire matched string for JavaScript RegEx) It will be useful if you want to use the same regular expression to check form values both PHP and Client. It's
probably useful people who are learning regex also.
Template function/class slows down site a lot, especially if it is implemented in PHP. This is an example code how output bufferring and include() can be used as template.