From e0fc57bffe1220b149b3f4f9ed800c8dd356bd57 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 4 Sep 2008 19:29:17 +0000 Subject: removed random invisible character (ASCII 194) from HTML and PHP files --- user_guide/helpers/path_helper.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/helpers') 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

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.

$directory = './../../etc/passwd';
-echo set_realpath($directory);
+echo set_realpath($directory);
// returns "/etc/passwd"

$non_existent_directory = './../../path/not/found';
-echo set_realpath($non_existent_directory, TRUE);
+echo set_realpath($non_existent_directory, TRUE);
// returns "/path/not/found"

-echo set_realpath($non_existent_directory, FALSE);
+echo set_realpath($non_existent_directory, FALSE);
// returns an error, as the path could not be resolved

 

-- cgit v1.2.3-24-g4f1b