Ganesh H S

Thoughts on open source technologies, search engine optimization, website security

robots.txt | robots meta tag

The robots META tag is similar to robots.txt, its placed in the head section of an HTML page.
In robots meta tag -

The “NAME” attribute is “ROBOTS”.
The “CONTENT” attribute are: “INDEX”, “NOINDEX”, “FOLLOW”, “NOFOLLOW”.

Do not index the content of a page, scan it for links to follow.
<META NAME=”ROBOTS” CONTENT=”NOINDEX, FOLLOW”>
Indexing content of a page […]

.htaccess password | Basic authentication of HTTP users

When projects are in development stage or we may have some internal projects related to intra center and we do not intend to share/allow access to outside users, then how can we prevent this? This basic HTTP authentification can be done using .htaccess
step1: Decide the paths which you want to protect
- Path: /var/www/html/,
Path to .htaccess […]

zend framework tutorial: Part 8 - Zend Registry

In php programming we always used global or $_GLOBALS to refer to the global variable.
For example consider below -
Db.php
<?php

// connect to mysql server
$mysqlLink = mysql_connect(”mysql_server”, “mysql_user”, “mysql_password”);
?>
index.php
<?php
require_once “Db.php”;
function displayTables()
{
global $mysqlLink;

$sql = “SHOW TABLES”;

//use global variable mysqlLink, and perform query execution

mysql_query($sql, $mysqlLink);

?>
In zend framework, zend registry is an mechanism to using global storage. The registry […]