faqts : Computers : Programming : Languages : PHP : Function Libraries : Control Structures

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 4 people (50%) answered Yes
Recently 1 of 3 people (33%) answered Yes

Entry

How to set a include directory?

May 21st, 2004 12:33
Julio Nobrega, Jason Bryner,


Use the ini_set() function, or set_include_path()

1) ini_set('include_path', '/var/www/') |
http://br.php.net/manual/en/configuration.directives.php#ini.include-path

This function requires the command that you're setting, in our case,
"include_path", and then the complete path as the second argument.

2) set_include_path('/var/www/') | http://www.php.net/set_include_path

It has only one argument, the path.