<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>rvdavid: A Web Developer&#039;s Blog &#187; General Notes</title> <atom:link href="http://www.rvdavid.net/category/web-development/php-programming/general-notes/feed/" rel="self" type="application/rss+xml" /><link>http://www.rvdavid.net</link> <description>A periodical blog of experiences from the angle of an autodidactic, paranoid and narcissistic web developer...</description> <lastBuildDate>Wed, 01 Sep 2010 12:47:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator><meta
xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" /> <item><title>Joomla!: How to hide the Administrator or Front end layout template</title><link>http://www.rvdavid.net/joomla-how-to-hide-the-administrator-or-front-end-layout-template/</link> <comments>http://www.rvdavid.net/joomla-how-to-hide-the-administrator-or-front-end-layout-template/#comments</comments> <pubDate>Tue, 21 Apr 2009 03:56:44 +0000</pubDate> <dc:creator>rvdavid</dc:creator> <category><![CDATA[General Notes]]></category> <category><![CDATA[joomla]]></category><guid
isPermaLink="false">http://blog.rvdavid.net/joomla-how-to-hide-the-administrator-or-front-end-layout-template/</guid> <description><![CDATA[It&#8217;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&#8217;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 [...]]]></description> <content:encoded><![CDATA[<div
class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript">google_ad_client = "pub-3968550303568935";
/* 250x250, created 07/06/10 */
google_ad_slot = "3782770990";
google_ad_width = 250;
google_ad_height = 250;</script> <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><p>It&#8217;s taken a good part of an hour trying to find how to disable the administrator or front end template for Joomla.<br
/> So I thought I&#8217;d just make a post in an effort to turn this frustrated energy into something positive.</p><p>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 &#8220;component&#8221;.</p><p><span
id="more-131"></span></p><p>Something along the lines of having the following snippet in the controller method:<br
/> JRequest::setVar(&#8216;tmpl&#8217;, &#8216;component&#8217;);</p><p>Either that, or adding &#8220;&amp;tmpl=component&#8221; to the URL.</p><p>I remember doing it before, however it&#8217;s been a while.</p><p>All attempts at searching on how to do the above proved frustratingly impossible as the organic search results for google are filled with people asking how to &#8220;disable legacy&#8221; modes, &#8220;templates&#8221;, &#8220;modules&#8221;, &#8220;plugins&#8221;, how to make your joomla admin panel rock(!!!!) &#8211; not what I was looking for!</p><p>Anyway, it&#8217;s a rather simple, but not particulary obvious thing &#8211; I had to track down the code which I had written over 6 months ago to track that snippet down.</p><p>Hope this helps other Joomla! component developers <img
src='http://www.rvdavid.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.rvdavid.net/joomla-how-to-hide-the-administrator-or-front-end-layout-template/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Execute Linux commands in PHP by using backticks</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/</link> <comments>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comments</comments> <pubDate>Sat, 12 Jan 2008 14:29:25 +0000</pubDate> <dc:creator>rvdavid</dc:creator> <category><![CDATA[General Notes]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/</guid> <description><![CDATA[You can execute linux commands within a php script &#8211; 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 [...]]]></description> <content:encoded><![CDATA[<p>You can execute linux commands within a php script &#8211; all you have to do is put the command line in backticks (`).</p><p>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:<br
/> <span
id="more-87"></span></p><pre lang="php">
&lt;?php
#extractarchive.php
echo `tar -xvfz somearchive.tar.gz`;
?&gt;
</pre><p>Upon loading up &#8220;extractarchive.php&#8221;, I can see the output of the tar command through the browser. I did this by using the echo function on the backticked command line &#8211; this is not necessary for the backticked command to be executed by php.</p><p>Of course, the PHP file will need to have the necessary permissions to execute commands and as always, proceed with caution. I myself do not like doing things this way, I&#8217;ve used it in the past as a last resort. But if you ever need to do something like this, at least you know that this can be done with PHP.</p> ]]></content:encoded> <wfw:commentRss>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/13 queries in 0.016 seconds using disk

Served from: www.rvdavid.net @ 2010-09-10 20:40:08 -->