Posts Tagged ‘PHP’

PHP Array of States

This site has a preprinted PHP array of US states.  Its very handy when you need to add a state selector to your application.  Just thought I’d share that tidbit.

No Comments »

Email Spam Protection

The email spam protection will convert the shortcode [ escapeemail email="email@address.com" ] to 

<script type="text/javascript">
eval(unescape('%64%6f%63%75%6d%65%6e%74%
2e%77%72%69%74%65%28%27%3c%61%20%68%
72%65%66%3d%22%6d%61%69%6c%74%6f%3a%
65%6d%61%69%6c%40%61%64%64%72%65%73
%73%2e%63%6f%6d%22%3e%65%6d%61%69%6c
%20%61%74%20%61%64%64%72%65%73%73%
20%64%6f%74%20%63%6f%6d%3c%2f%61%3e%27%29'))

</script>

which writes email at address dot com into your post.

Based on the email obfuscation found at http://twitter.com/help/contact

You can download this plugin here.

If you don’t want the plugin (or don’t have WordPress) you can generate the code for yourself: Email Spam Protection

23 Comments »

PHP Output Buffering

Some of the coolest functions available in PHP are the output buffering functions.  If you are reading this, you probably have some idea of how web php pages are delivered from the server to the client, but if you don’t, here is a quick recap:

  1. User requests any web page
  2. The web server receives and interprets the request
  3. The requested file is sent to the PHP processor
  4. PHP compiles and executes the combination of PHP and HTML sent to it
  5. The compiled information is sent back to the web server (the page may not be complete yet)
  6. Your browser downloads the page from the web server

Continue reading PHP Output Buffering…

1 Comment »

WP Login