From 2067d1a727e7eb5e5ffb40e967f3d1fc4c8a41b2 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 13 Nov 2008 22:59:24 +0000 Subject: Changing EOL style to LF --- user_guide/helpers/path_helper.html | 210 ++++++++++++++++++------------------ 1 file changed, 105 insertions(+), 105 deletions(-) (limited to 'user_guide/helpers/path_helper.html') diff --git a/user_guide/helpers/path_helper.html b/user_guide/helpers/path_helper.html index ca3fb646a..6c0d76025 100644 --- a/user_guide/helpers/path_helper.html +++ b/user_guide/helpers/path_helper.html @@ -1,106 +1,106 @@ - - - - - -Path Helper : CodeIgniter User Guide - - - - - - - - - - - - - - - - - - - - -
- - - - - -

CodeIgniter User Guide Version 1.7

-
- - - - - - - - - -
- - -
- - - -
- - -

Path Helper

- -

The Path Helper file contains functions that permits you to work with file paths on the server.

- - -

Loading this Helper

- -

This helper is loaded using the following code:

-$this->load->helper('path'); - -

The following functions are available:

- - -

set_realpath()

- -

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);
-// returns "/etc/passwd"
-
-$non_existent_directory = '/path/to/nowhere';
-echo set_realpath($non_existent_directory, TRUE);
-// returns an error, as the path could not be resolved -

-echo set_realpath($non_existent_directory, FALSE);
-// returns "/path/to/nowhere" - - - -
-

 

-
- - - - - - + + + + + +Path Helper : CodeIgniter User Guide + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

CodeIgniter User Guide Version 1.7

+
+ + + + + + + + + +
+ + +
+ + + +
+ + +

Path Helper

+ +

The Path Helper file contains functions that permits you to work with file paths on the server.

+ + +

Loading this Helper

+ +

This helper is loaded using the following code:

+$this->load->helper('path'); + +

The following functions are available:

+ + +

set_realpath()

+ +

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);
+// returns "/etc/passwd"
+
+$non_existent_directory = '/path/to/nowhere';
+echo set_realpath($non_existent_directory, TRUE);
+// returns an error, as the path could not be resolved +

+echo set_realpath($non_existent_directory, FALSE);
+// returns "/path/to/nowhere" + + + +
+

 

+
+ + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b