It returns information about a link
Example
<?php
echo linkinfo(‘test.txt’);
?>
Output
2049
It returns information about a link
Example
<?php
echo linkinfo(‘test.txt’);
?>
Output
2049
It creates a hard link
Example
<?php
$target = ‘test.ext’;
$link = ‘test’;
link($target, $link);
echo $link;
?>
Output
test
It changes user ownership of symlink
Example
<?php
$target = ‘test.php’;
$link = ‘test’;
symlink($target, $link);
lchown($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