Re: [PHP] PHP's include_path

2002-02-04 Thread Jason Wong

On Monday 04 February 2002 17:43, Neil Freeman wrote:
 Hi there,

 Am I correct in thinking that you can specify the PHP include_path line
 within an Apache .htaccess file? If so does anyone know the correct
 syntax of doing this?

 If you cannot specifiy PHP's include_path line from within this file -
 how do you use different include paths for different web sites???


I believe you can also use init_set() to set the include path.



hth
-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Please remain calm, it's no use both of us being hysterical at the same time.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP's include_path

2002-02-04 Thread Lars Torben Wilson

On Mon, 2002-02-04 at 01:43, Neil Freeman wrote:
 Hi there,
 
 Am I correct in thinking that you can specify the PHP include_path line
 within an Apache .htaccess file? If so does anyone know the correct
 syntax of doing this?

Something along the lines of:

IfModule mod_php4.c
   AddType application/x-httpd-php .html .inc .php
   php_value include_path .:/path/to/include/files/
/IfModule

Alter to suit your configuration.


Hope this helps,

Torben
 
 If you cannot specifiy PHP's include_path line from within this file -
 how do you use different include paths for different web sites???
 
 Hope someone can help :)
 
 Neil
 
  Email:  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
-- 
 Torben Wilson [EMAIL PROTECTED]
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman

Thanks for the quick reply Jason. This looks like it'll achieve what I want but I
think that using a htaccess file is a better 'overall' method.

Cheers,

Neil

Jason Wong wrote:

 On Monday 04 February 2002 17:43, Neil Freeman wrote:
  Hi there,
 
  Am I correct in thinking that you can specify the PHP include_path line
  within an Apache .htaccess file? If so does anyone know the correct
  syntax of doing this?
 
  If you cannot specifiy PHP's include_path line from within this file -
  how do you use different include paths for different web sites???

 I believe you can also use init_set() to set the include path.

 hth
 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk

 /*
 Please remain calm, it's no use both of us being hysterical at the same time.
 */

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 ***
  This message was virus checked with: SAVI 3.53 Jan 2002
  last updated 30th January 2002
 ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman

Thanks for the syntax info Lars.

Neil

Lars Torben Wilson wrote:

 On Mon, 2002-02-04 at 01:43, Neil Freeman wrote:
  Hi there,
 
  Am I correct in thinking that you can specify the PHP include_path line
  within an Apache .htaccess file? If so does anyone know the correct
  syntax of doing this?

 Something along the lines of:

 IfModule mod_php4.c
AddType application/x-httpd-php .html .inc .php
php_value include_path .:/path/to/include/files/
 /IfModule

 Alter to suit your configuration.

 Hope this helps,

 Torben

  If you cannot specifiy PHP's include_path line from within this file -
  how do you use different include paths for different web sites???
 
  Hope someone can help :)
 
  Neil
  
   Email:  [EMAIL PROTECTED]
   [EMAIL PROTECTED]
  
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 --
  Torben Wilson [EMAIL PROTECTED]
  http://www.thebuttlesschaps.com
  http://www.hybrid17.com
  http://www.inflatableeye.com
  +1.604.709.0506

 ***
  This message was virus checked with: SAVI 3.53 Jan 2002
  last updated 30th January 2002
 ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php