I have to clean this up.

  • coding
  • php
  • sql
  • webhosts
  • joomla tips. 

This section is a reflection of my coding skills -- cut and paste, and hastily thrown together. Most of this is copied from other sites -- just so I have fast reference here.
If it belongs to you - sorry. Let me know. Though most has attribution. ;-)

this is in place here for

edit the template index.php file and add the following AS THE VERY FIRST LINES of the install's primary index.php.

$domain = $_SERVER["HTTP_HOST"];
$url = $domain . $uri;

if (($url == "") ||
   ($url == "")) { 
   header("Status: 301 Moved Permanently");

Here's the benefit: The visitor will now be redirected to the appropriate Red Site page, that has the Red Template assigned to it only in the case where they have arrived at the 'red site' domain name. Otherwise, the conditional PHP rule is ignored, and the Yellow Site loads.

Pipes can be thought of as a tube where data enters one end and sorted or customized at the other end.  Using pipes you can connect two programs. You can make the output of a particular command to act as the input for another command.  You can carry on this chain  between commands for customized outputs.

Pipes can be used with most of the Unix commands. You should take care to check that the output of the first command is acceptable input to the second command.
It should not be that the first command has its output in some format other than text format and the second command works with only text input. If at all this sort of thing happens, you would mostly get an error message or you would have to type <Ctrl>-C to quit the execution of the command and come back to the prompt.

  1. Part I: Basic Find Commands for Finding Files with Names
  2. Part II: Find Files Based on their Permissions
  3. Part III: Search Files Based On Owners and Groups
  4. Part IV: Find Files and Directories Based on Date and Time
  5. Part V: Find Files and Directories Based on Size


The grep command searches the given input FILEs for lines containing a match or a text string.

grep command syntax

The syntax is:

grep "text string to search” directory-path



Other sites hosted by L Rio.