diff options
Diffstat (limited to 'user_guide/helpers/path_helper.html')
-rw-r--r-- | user_guide/helpers/path_helper.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide/helpers/path_helper.html b/user_guide/helpers/path_helper.html index 42f4713d6..78815a256 100644 --- a/user_guide/helpers/path_helper.html +++ b/user_guide/helpers/path_helper.html @@ -73,14 +73,14 @@ 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 />
-echo set_realpath($directory);<br />
+echo set_realpath($directory);<br />
// returns "/etc/passwd"<br />
<br />
$non_existent_directory = './../../path/not/found';<br />
-echo set_realpath($non_existent_directory, TRUE);<br />
+echo set_realpath($non_existent_directory, TRUE);<br />
// returns "/path/not/found"<br />
<br />
-echo set_realpath($non_existent_directory, FALSE);<br />
+echo set_realpath($non_existent_directory, FALSE);<br />
// returns an <strong>error</strong>, as the path could not be resolved</code>
<h2> </h2>
</div>
|