It changes group ownership of symlink
Example
<?php
$target = ‘test.php’;
$link = ‘test’;
symlink($target, $link);
lchgrp($link, 8);
?>
It changes group ownership of symlink
Example
<?php
$target = ‘test.php’;
$link = ‘test’;
symlink($target, $link);
lchgrp($link, 8);
?>
Its an Alias of is_writable() and checks whether the filename is writable
Example
<?php
echo is_writeable(‘test.txt’)?”Yes”:”No”;
?>
Output
Yes
It checks whether the filename is writable
Example
<?php
echo is_writable(‘test.txt’)?”Yes”:”No”;
?>
Output
Yes
It checks whether the file was uploaded via HTTP POST
Example
<?php
echo is_uploaded_file(‘test.txt’)?”Yes”:”No”;
?>
Output
No
It checks whether the file exists and is readable
Example
<?php
echo is_readable(‘test.txt’)?”Yes”:”No”;
?>
Output
Yes
It checks whether the filename is a symbolic link
Example
<?php
echo is_link(‘test.txt’)?”Yes”:”No”;
?>
Output
No
It checks whether the filename is a regular file
Example
<?php
echo is_file(‘test.txt’)?”Yes”:”No”;
?>
Output
Yes
It checks whether the filename is executable
Example
<?php
echo is_executable(‘test.txt’)?”Yes”:”No”;
?>
Output
Yes
It checks whether the filename is a directory
Example
<?php
echo is_dir(‘test.txt’)?”Yes”:”No”;
?>
Output
No
It writes the string to a file
Example
<?php
$fp = fopen(“test.txt”, “w”);
$data = fwrite($fp,”phpcodez” );
fclose($fp);
?>