Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set_include_path(3) [php man page]

SET_INCLUDE_PATH(3)							 1						       SET_INCLUDE_PATH(3)

set_include_path - Sets the include_path configuration option

SYNOPSIS
string set_include_path (string $new_include_path) DESCRIPTION
Sets the include_path configuration option for the duration of the script. PARAMETERS
o $new_include_path - The new value for the include_path RETURN VALUES
Returns the old include_path on success or FALSE on failure. EXAMPLES
Example #1 set_include_path(3) example <?php // Works as of PHP 4.3.0 set_include_path('/usr/lib/pear'); // Works in all PHP versions ini_set('include_path', '/usr/lib/pear'); ?> Example #2 Adding to the include path Making use of the PATH_SEPARATOR constant, it is possible to extend the include path regardless of the operating system. In this example we add /usr/lib/pear to the end of the existing include_path. <?php $path = '/usr/lib/pear'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); ?> SEE ALSO
ini_set(3), get_include_path(3), restore_include_path(3), include(3). PHP Documentation Group SET_INCLUDE_PATH(3)

Check Out this Related Man Page

ARRAY_FILL(3)								 1							     ARRAY_FILL(3)

array_fill - Fill an array with values

SYNOPSIS
array array_fill (int $start_index, int $num, mixed $value) DESCRIPTION
Fills an array with $num entries of the value of the $value parameter, keys starting at the $start_index parameter. PARAMETERS
o $start_index - The first index of the returned array. If $start_index is negative, the first index of the returned array will be $start_index and the following indices will start from zero (see example). o $num - Number of elements to insert. Must be greater than or equal to zero. o $value - Value to use for filling RETURN VALUES
Returns the filled array ERRORS
/EXCEPTIONS Throws a E_WARNING if $num is less than zero. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.6.0 | | | | | | | $num may now be zero. Previously, $num was | | | required to be greater than zero. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 array_fill(3) example <?php $a = array_fill(5, 6, 'banana'); $b = array_fill(-2, 4, 'pear'); print_r($a); print_r($b); ?> The above example will output: Array ( [5] => banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) NOTES
See also the Arrays section of manual for a detailed explanation of negative keys. SEE ALSO
array_fill_keys(3), str_repeat(3), range(3). PHP Documentation Group ARRAY_FILL(3)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

extend /usr on AIX

Hi! How to extend /usr partition in rootvg on AIX 4.3.3-09? I guess first I'll have to decrease the size of other partition(s) in rootvg? Thank you! (2 Replies)
Discussion started by: steve99
2 Replies

2. Shell Programming and Scripting

php pear

I have just upgrade my version of pear to the latest version but when issue pear list I get the following error messages <br /> <b>Fatal error</b>: Call to undefined function: getoptions() in <b>/usr/bin/pear</b> on line <b>34</b><br /> what am i doing wrong? can you help please. ... (0 Replies)
Discussion started by: hassan2
0 Replies

3. UNIX for Advanced & Expert Users

configuring PHP 5

i've downloaded php 5 everything seems to be going smoothly except for onething.. i can't seem to locate the files... my question is do i have to manually place the lib in /usr/lib. how do I go about doing this and which other files have to be allocated.. thanx moxxx68 (3 Replies)
Discussion started by: moxxx68
3 Replies

4. Shell Programming and Scripting

awk find/replace

Greetings all. I have web site that has long option and switch lists. When I insert something new into these files, the lists need to be reordered. IE: 1 => apple 2 => pear 3 => bannana 4 => orange --------------------- Add grape as #2 1 => apple 2 => grape 3 => pear 4 =>... (2 Replies)
Discussion started by: RobertSubnet
2 Replies

5. Shell Programming and Scripting

arrays and two values

I have requirement where I need to capture the highest values of items from a feed that runs for N hours. For example lets assume my data looks like this first feed ======== appples 10 oranges 20 pears 14 second feed ========== apples 5 oranges 30 pears 1 Last feed... (6 Replies)
Discussion started by: BeefStu
6 Replies

6. Shell Programming and Scripting

Find processes older than 1 day

// AIX 6.1 I need to extract PIDs of ps -ef |grep /usr/lib/lpd/pio | awk '{print $2}' ps -ef |grep qdaemon |grep /usr/bin/ksh | awk '{print $2}' that are older than 1 day. I know find . -type f -mtime +1, but it doesn't work for PIDs. Please let me know how to get the PIDs older than... (1 Reply)
Discussion started by: Daniel Gate
1 Replies

7. Infrastructure Monitoring

Discovery Tools.

Hi Folks, realise that this forum might not be the exact match for this question, so feel free to put it somewhere more apropriate. I'm currently involved in a project that has gone somewhat pear shaped, just to keep this all short the situation is as follows. I was brought in to manage a... (2 Replies)
Discussion started by: gull04
2 Replies