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
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
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
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
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
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,
-
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
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
8 matches
Mail list logo