Archive for the ‘General Notes’ category

Joomla!: How to hide the Administrator or Front end layout template

April 21st, 2009

It’s taken a good part of an hour trying to find how to disable the administrator or front end template for Joomla.
So I thought I’d just make a post in an effort to turn this frustrated energy into something positive.

To display only the contents of the view on the page without being framed by a template, the tmpl variable needs to be set to “component”.

» Read more: Joomla!: How to hide the Administrator or Front end layout template

Execute Linux commands in PHP by using backticks

January 13th, 2008

You can execute linux commands within a php script – all you have to do is put the command line in backticks (`).

Recently, I had to upload an archive to a server which did not allow ssh. For files that I need to transfer, I just package them up in a neat archive and transfer the archive file via scp. Not having ssh access however, I uploaded the archive file via ftp and created a script which extracts the file the file looks like the following:
» Read more: Execute Linux commands in PHP by using backticks