<?php
//dir_chgrp.php
function simple()
{
$path = "http://manas6/myphp/File_Directories/Directoris/chgrp.txt";
$password ="my_admin";
echo "<u> Path </u>:   $path<br/>";
$base = basename($path);
echo "<u>Read file name of the base directory</u> :   $base<br/>";
$base_name = basename($path, ".txt");
echo "<u>Read file name with out extension</u> :  $base_name<br/>";
chgrp ($path, $password)
or die ("The group ownership of <i>$path</i> could not be set to <i>$password</i>");
}
?>
<html>
<title> dir_chgrp.php</title>
<body text="#000080" bgcolor="#F7F0D7">
Example <u> function chgrp()</u>:  chgrp() doesn't work on Windows
platforms. <br>If called, the function always returns a value of FALSE.
<br>
<!-- <form method="post" action="string_Unicode_auto.php">
<input type="text" name="T1" size="20"><input type="submit" value="Submit"
name="B1">
</form>
-->
<?php
//$test=$_POST[T1];
simple();
?>
</body>
</html>
|