diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 09:21:55 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 09:21:55 +0200 |
commit | 13d37ed612ed1a340b6fd5f74dd21ff462bbf47e (patch) | |
tree | 910941639dae307fbfe1aa11dea0e0e8eb82988a | |
parent | 46690905586fac48218d1496bde79ff484b12a65 (diff) |
Description was bas-ackward
-rw-r--r-- | user_guide/helpers/path_helper.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/user_guide/helpers/path_helper.html b/user_guide/helpers/path_helper.html index 78815a256..ca3fb646a 100644 --- a/user_guide/helpers/path_helper.html +++ b/user_guide/helpers/path_helper.html @@ -72,16 +72,20 @@ Path Helper <p>Checks to see if the path exists. This function will return a server path without symbolic links or relative directory structures. An optional second argument will cause an error to be triggered if the path cannot be resolved.</p>
-<code>$directory = './../../etc/passwd';<br />
+<code>$directory = '/etc/passwd';<br />
echo set_realpath($directory);<br />
// returns "/etc/passwd"<br />
<br />
-$non_existent_directory = './../../path/not/found';<br />
+$non_existent_directory = '/path/to/nowhere';<br />
echo set_realpath($non_existent_directory, TRUE);<br />
-// returns "/path/not/found"<br />
-<br />
+// returns an <strong>error</strong>, as the path could not be resolved
+<br /><br />
echo set_realpath($non_existent_directory, FALSE);<br />
-// returns an <strong>error</strong>, as the path could not be resolved</code>
+// returns "/path/to/nowhere"
+
+
+
+</code>
<h2> </h2>
</div>
<!-- END CONTENT -->
|