summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-17 09:21:55 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-17 09:21:55 +0200
commit13d37ed612ed1a340b6fd5f74dd21ff462bbf47e (patch)
tree910941639dae307fbfe1aa11dea0e0e8eb82988a /user_guide/helpers
parent46690905586fac48218d1496bde79ff484b12a65 (diff)
Description was bas-ackward
Diffstat (limited to 'user_guide/helpers')
-rw-r--r--user_guide/helpers/path_helper.html14
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 &quot;/etc/passwd&quot;<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 &quot;/path/not/found&quot;<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 &quot;/path/to/nowhere&quot;
+
+
+
+</code>
<h2>&nbsp;</h2>
</div>
<!-- END CONTENT -->