This simple snippet will provide you with a HTTP or HTTPS Fully Qualified Domain Name URL and Base Path to your CakePHP installation. I use it for the HTML base tag.
fopen
URL Reader
July 24th, 2007 - brett
This function will download the contents of any URL and return it as a string that you can save to a file or database.
It will use curl if it is installed. Otherwise it will use fopen/fread.
