Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Can I set a different PHP include path per Apache Virtual host?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I set a different PHP include path per Apache Virtual host?



This has to be my favorite PHP trick. In your apache virtual host directive
put something like this:


# PHP OPTIONS ###########################
    <Directory /path/to/site>
        php_value include_path ".:/path/to/site:/another/path"
        php_admin_value session.entropy_file "/dev/urandom"
        php_admin_value session.entropy_length "512"
        php_admin_value session.auto_start 1
        php_admin_value session.use_cookies 1
        php_admin_value session.use_only_cookies 1
        php_admin_value session.cookie_lifetime 0
        php_admin_value session.cookie_secure 1
    </Directory>
# PHP OPTIONS ###########################


You can completely customize almost every aspect of PHP on a per site basis
( or even per directory, if you wanted). This is perfect for including class
files, setting defaults, configuring cookies, etc.

-corey




On 6/10/04 11:44 AM, "Mike Zornek" <email@hidden> wrote:

> I've been asking this on the PHP list without a ton of luck. Maybe someone
> here knows...
>
> Can I set a different PHP include path per Apache Virtual host? And if so
> how?
>
> ~ Mike
> -----
> Mike Zornek
> Web Designer, Media Developer, Programmer and Geek
> Personal site: <http://MikeZornek.com>
> _______________________________________________
> web-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/web-development
> Do not post admin requests to the list. They will be ignored.


DOMANI STUDIOS

Corey Szopinski
Technology Director

email@hidden
70 Washington St. Suite 710
Brooklyn, NY 11201
718.797.4470  x116
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Can I set a different PHP include path per Apache Virtual host? (From: Mike Zornek <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.