Integrate Rails app and PHP on Apache

January 5, 2012

Here is one method of how to integrate a Ruby on Rails application and a PHP application or even just static HTML using Apache webserver. One reason for doing this could be (in this website’s case) that your main website application is Rails but you want to use WordPress or[...]

Get string of boolean value in PHP

April 15, 2011

PHP has the function string strval($var) to return a string value from the variable which is great but the string value of a boolean is either 1 or 0 so this will not return the string “true” or “false”. This simple little example and function shows this and is great[...]

PHP Table from XML doc

September 24, 2007

This has probably been done before and probably in a better way but I was quite pleased with doing this myself. This PHP code will build and fill a table with the contents of your XML file.   “; echo “”; echo “COL1″; echo “COL2″; echo “COL3″; echo “COL4″; //Initialises[...]