Apparently someone behind Website Databases has come up with a revolutionary method of turning a HTML (HyperText Markup Language) file into a PHP (HyperText Preprocessor) file. After taking a few seconds to come up with my own inovative ideas, I came across a couple methods that they have possibly implemented.

  1. Rename the file from foo.html to foo.php
  2. Place the contents of foo.html into one huge string and print/echo it.

I cannot believe I didn’t think of this myself.

Share and Enjoy:
  • Digg
  • E-mail this story to a friend!
  • Reddit
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • Slashdot