coding standards

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293049 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mark Wiesemann 2010-01-03 21:47:39 +00:00
parent d39b4c13e4
commit c7ebccc937
2 changed files with 9 additions and 15 deletions

View file

@ -202,15 +202,12 @@ echo 'Device number: ' . $stat['dev'];
<![CDATA[
<?php
/* Get file stat */
$stat = @stat('C:\php\php.exe');
$stat = stat('C:\php\php.exe');
/* Did we failed to get stat information ? */
if(!$stat)
{
echo 'Stat call failed...';
}
else
{
/* Did we failed to get stat information? */
if (!$stat) {
echo 'stat() call failed...';
} else {
/*
* We want the access time to be 1 week
* before the current access time.
@ -218,13 +215,10 @@ else
$atime = $stat['atime'] + 604800;
/* Touch the file */
if(!@touch('some_file.txt', time(), $atime))
{
if (!touch('some_file.txt', time(), $atime)) {
echo 'Failed to touch file...';
}
else
{
echo 'Touch returned success...';
} else {
echo 'touch() returned success...';
}
}
?>

View file

@ -88,7 +88,7 @@ $target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);
echo(readlink($link));
echo readlink($link);
?>
]]>
</programlisting>