Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/demo/create_fake.php
<?php

# Creates the config file owned by nfsnobody

$infile = "original/config_file.php";
$outfile = "config_file.php";

$file_perms = 0660;
$file_group = 96952; #this does not work

copy($infile,$outfile);

# I would like to change the group to 'tvez', but apache can't do
#chgrp($config_file,96952);

# make the file readable by the group only
chmod($outfile,$file_perms);

echo "Config file '$outfile' written and chmoded to ".decoct($file_perms);
?>
Return current item: TVEz - Media Library