RE: [PHP-WIN] "/" path under include() function.

From: Date: Fri, 24 Nov 2000 18:37:59 +0000
Subject: RE: [PHP-WIN] "/" path under include() function.
Groups: php.windows 
Request: Send a blank email to php-windows+get-4098@lists.php.net to get a copy of this message
actually, you can set the include_path preference in the php.ini file, once it is set all you have to do is call the file name in your include() command. under the include_path setting See http://www.php.net/manual/configuration.php for more information include_path string Specifies a list of directories where the require(), include() and fopen_with_path() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in UNIX or semicolon in Windows. Example 3-1. UNIX include_path include_path=.:/home/httpd/php-lib Example 3-2. Windows include_path include_path=".;c:\www\phplib" --------------------- Founder of The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Caesar si viveret, ad remum dareris. > -----Original Message----- > From: Mykone C. Saunders [mailto:mykone@home.com] > Sent: Wednesday, November 22, 2000 7:53 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] "/" path under include() function. > > > I am using PHP4 on IIS5.0 > > I need to include a file called header.htm in > <webroot>/includes/header.htm > from > <webroot>references/index.html > > when i do <?include("/includes/header.htm")?> it doesn't > work, why can't I > use the "/" directive in the include() function? > > Thanks in advance. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#4098) next »