Location: PHPKode > scripts > robots.wizard(tm) > robots-wizardtm/chmod.php
/* robots.wizard chmod.php copyright 2006 Betsy A. Gamrat all rights reserved 

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    Contact Information: Betsy A. Gamrat hide@address.com

chmod.php attempts to change the permissions of the robots.txt file to 444.
This will probably fail, but it is included for completeness.
include "subheader.php";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META NAME="COPYRIGHT" CONTENT="&copy; 2006 Betsy A. Gamrat All Rights Reserved" />
<title>Update robots.txt permissions</title>
<link rel="stylesheet" type="text/css" href="stylesheets/robots.css" />
<body style="text-align:center"> 
<br /><br />
	include "constants.php";

	if (@chmod (TOP."robots.txt",0444))
		echo 'File permissions of robots.txt successfully set to 0444.<br />';
		echo 'Unable to set file permissions of robots.txt.  Please make the change manually.<br />';
<br /><br />
<input type="button" onclick="window.close();" value="Close window" />
Return current item: robots.wizard(tm)