Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: > Possibly that apache is chroot'ed. I know you said LAMP. But which OS/etc... Sometimes you can see from the cli if httpd is rooted. run 'ps aux | grep httpd' and see if httpd says anything about chroot I don't see anything here root 1937 0.0 5.2 25600 13456 ?

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Dan Joseph wrote: Ok, I have changed my php.ini and restarted apache. My include_path is set to include_path = ".:/srv/www/html" but when I try from /srv/www/html/library/index.php: require '/Tools/dbtools/dbtool.php'; or require 'Tools/dbtools/dbtool.php'; or require '../Tools/dbtools/dbtool.

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/s

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 4:36 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Jim Lucas wrote: > >> Their are two ways that come to mind. >> >> 1. Like Dan suggested, use the full path. >> >> 2. (I prefer this way), change your include_path setting either in your >> php.ini file, virtual host, .htac

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/srv/www/html/" and then

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 3:41 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Tyson Vanover wrote: > >> Jim Lucas wrote: >> >> Their are two ways that come to mind. >>> >>> 1. Like Dan suggested, use the full path. >>> >>> 2. (I prefer this way), change your include_path setting either in your >>> php.

Re: [PHP] Problems with includes

2008-05-16 Thread Andrew Ballard
On Fri, May 16, 2008 at 3:31 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> I'm pretty sure you're gonna need to include the entire path: >> >> require( "/srv/www/html/Tools/tool2/tool2.php" ); >> >> for both of your tools. >> > > So when php runs it's paths are drawn from th

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Dan Joseph wrote: I'm pretty sure you're gonna need to include the entire path: require( "/srv/www/html/Tools/tool2/tool2.php" ); for both of your tools. So when php runs it's paths are drawn from the OS's structure and not apache's? hun. thanks! Only if apache

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/srv/www/html/" and the

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Dan Joseph wrote: I'm pretty sure you're gonna need to include the entire path: require( "/srv/www/html/Tools/tool2/tool2.php" ); for both of your tools. So when php runs it's paths are drawn from the OS's structure and not apache's? hun. thanks! -- PHP General Mailing List (http://www

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: I am trying to keep my tools and pages segregated for a variety of reasons (organization, security, etc). And I am having problems with my includes on my LAMP box. My user facing tools are not including my utility classes and files. The root directory of my web server (

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 2:25 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > I am trying to keep my tools and pages segregated for a variety of reasons > (organization, security, etc). And I am having problems with my includes on > my LAMP box. My user facing tools are not including my utility cl