svn: /phpdoc/en/trunk/reference/filesystem/functions/ stat.xml symlink.xml

From: Date: Sun, 03 Jan 2010 21:47:39 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ stat.xml symlink.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5743@lists.php.net to get a copy of this message
wiesemann Sun, 03 Jan 2010 21:47:39 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293049 Log: coding standards Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/stat.xml U phpdoc/en/trunk/reference/filesystem/functions/symlink.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/stat.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/stat.xml 2010-01-03 21:47:22 UTC (rev 293048) +++ phpdoc/en/trunk/reference/filesystem/functions/stat.xml 2010-01-03 21:47:39 UTC (rev 293049) @@ -202,15 +202,12 @@ <![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,14 +215,11 @@ $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...'; - } } ?> ]]> Modified: phpdoc/en/trunk/reference/filesystem/functions/symlink.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/symlink.xml 2010-01-03 21:47:22 UTC (rev 293048) +++ phpdoc/en/trunk/reference/filesystem/functions/symlink.xml 2010-01-03 21:47:39 UTC (rev 293049) @@ -88,7 +88,7 @@ $link = 'uploads'; symlink($target, $link); -echo(readlink($link)); +echo readlink($link); ?> ]]> </programlisting>

« previous php.doc.cvs (#5743) next »