Re: [PHP] php and apache path...

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 11:08 AM, Nightshade wrote: > Yea,I understood. But my question is: is right that my Document_root > (shown > in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't > right where I can change this? I'm not sure -- is that the directory that you

Re: [PHP] php and apache path...

2002-07-03 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: >> Analysis & Solutions wrote: >> >> Document root doensn't solve my problem... >> ... snip ... >> Any solution? > > Read and heed what I already said: > >> > Whenever you have a question like this, run p

Re: [PHP] php and apache path...

2002-07-02 Thread Justin French
In your config file (or at the top of each page) you should establish what your document root is: $docroot = "/usr/home/sitename/";# or whatever Then do something like include("{$docroot}inc_dir/file.inc"); Or maybe you specify an include directory in your config: $incdir = "/usr/home/sit

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: > Analysis & Solutions wrote: > > Document root doensn't solve my problem... > ... snip ... > Any solution? Read and heed what I already said: > > Whenever you have a question like this, run phpinfo() and see what's there > > which pro

Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: >> is there a unix like ~/ , to access to root directory of my site > > Does $_SERVER['DOCUMENT_ROOT'] help? > > Whenever you have a question like this, run phpinfo() and see what's there > which produces

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 09:55:13PM +0200, Nightshade wrote: > > Do you advice me to use > $_SERVER['DOCUMENT_ROOT'] . remaining_path/ > in all my files? I use relative paths in most circumstances. Makes things easier to move between my development machine and the actual web servers. Enjoy, -

Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: >> is there a unix like ~/ , to access to root directory of my site > > Does $_SERVER['DOCUMENT_ROOT'] help? > > Whenever you have a question like this, run phpinfo() and see what's there > which produces

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: > is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan

[PHP] php and apache path...

2002-07-02 Thread Nightshade
Hi there.That's my question...A file that is in the 4th level's subdir must read a file that's in the 1st level. but I wish avoid to use millions of ../../../thefile.php I hope have been clear... is there a unix like ~/ , to access to root directory of my site, so open the file? tnx in advance,