Re: [PHP] document_root

2002-10-01 Thread Brad Bonkoski
document_root is the root path to the webserver. Check out: http://www.php.net/manual/en/function.getcwd.php HTH -Brad Tony Crockford wrote: Hi what exactly does document_root do? Does it give to path to the file from the server root? or does it give the path to the server root? has

Re: [PHP] document_root

2002-10-01 Thread Chris Shiflett
*cringe* No, document root is a defined directory, not an attribute of a specific file. It is used to map the root URL to a directory on the filesystem. For example, when you request http://www.google.com/, that final slash in the URL is the resource you are requesting. In this case, it is

RE: [PHP] document_root

2002-10-01 Thread John W. Holmes
You want DOCUMENT_ROOT. If you have a file /home/groups/myproject/htdocs/file.php then, from within that file.php, DOCUMENT_ROOT is /home/groups/myproject/htdocs/ I think it would be $_SERVER['DOCUMENT_ROOT'] in newer versions of PHP. ---John Holmes... -Original Message- From:

RE: [PHP] document_root

2002-10-01 Thread Tony Crockford
Check out: http://www.php.net/manual/en/function.getcwd.php HTH -Brad Certainly does, thanks. I suppose if I'd thought to look at the manual contents rather than trying to construct a *search* I might have found that Oh well, so much to learn so little time. Thanks Tony -- PHP

RE: [PHP] document_root

2002-10-01 Thread John W. Holmes
:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 6:39 PM To: [EMAIL PROTECTED] Cc: 'Tony Crockford'; 'Php-General@Lists. Php. Net' Subject: Re: [PHP] document_root *cringe* No, document root is a defined directory, not an attribute of a specific file. It is used to map the root URL

Re: [PHP] document_root

2002-10-01 Thread Brad Bonkoski
-General@Lists. Php. Net' Subject: Re: [PHP] document_root *cringe* No, document root is a defined directory, not an attribute of a specific file. It is used to map the root URL to a directory on the filesystem. For example, when you request http://www.google.com/, that final slash

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-03 Thread Jesper Brunholm
David E. Weekly wrote: IMHO you're better off I agree and understand why, but... but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. I agree. =) Did you restart your webserver after you adjusted php.ini? Yes. Full stop/start cycle. And

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Kevin Waterson
On Mon, 1 Jul 2002 22:01:27 -0700 David E. Weekly [EMAIL PROTECTED] wrote: All, I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to 1.3.26 from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to on all of my PHP pages! $_SERVER['DOCUMENT_ROOT'] Kevin -- Kevin

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly
PROTECTED] To: David E. Weekly [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 7:23 AM Subject: Re: [PHP] DOCUMENT_ROOT disappeared on me! On Mon, 1 Jul 2002 22:01:27 -0700 David E. Weekly [EMAIL PROTECTED] wrote: All, I upgraded from PHP 4.1.2 to 4.2.1 today along

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 10:47 AM, David E. Weekly wrote: After many tries, that is what indeed worked, but I'm a little irked, since shouldn't it have been that setting register_global to On in my php.ini would re-enable these base globals? I had to retool all of my scripts. =/

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly
IMHO you're better off I agree and understand why, but... but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. I agree. =) Did you restart your webserver after you adjusted php.ini? Yes. Full stop/start cycle. -david -- PHP General

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 22:58, David E. Weekly wrote: IMHO you're better off I agree and understand why, but... but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. I agree. =) Did you restart your webserver after you adjusted php.ini?

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Steve Yates
David E. Weekly [EMAIL PROTECTED] wrote in message 000701c221d7$656f8d90$[EMAIL PROTECTED]">news:000701c221d7$656f8d90$[EMAIL PROTECTED]... I had to retool all of my scripts. =/ This is probably too late but one can use extract($_POST) or similar at the beginning of a script to create those

Re: [PHP] $DOCUMENT_ROOT behavior linux vs solaris

2002-03-20 Thread Alexander Skwar
»Dennis Moore« sagte am 2002-03-20 um 02:14:16 -0500 : So when I build my paths I get an extra /. Is there any way to make Sun version to work like the Linux version. I hate to go back and change all my code. Uhm, is the double / a problem? On Linux, it doesn't seem to hurt. Alexander

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Maxim Maletsky
Open your apache's httpd.conf file: see anything like this on VHost configuration of the site in question? JI Admin Database VirtualHost 1.0.0.10 ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/JI_admin ServerName admin

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jordan Elver
Thanks for the reply, I'm not using virtual hosts on my local machine but I am on the production machine. What should DOCUMENT_ROOT return? I though it returns the directory of the current script. So if I had a site in /usr/local/apache/htdocs/cha/script.php then I would expect DOCUMENT_ROOT

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Maxim Maletsky
PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 7:03 PM To: Yasuo Ohgaki Cc: PHP General Mailing List Subject: Re: [PHP] DOCUMENT_ROOT Thanks for the reply, I'm not using virtual hosts

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jaxon
Not to beat a dead horse, but assuming a site structure like this: /htdocs /htdocs/modules /htdocs/includes /htdocs/templates where all my PHP logic scripts are in htdocs, and all the bits and pieces are in the other dirs, is there any way to set include_path to: $include_path =

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread PHPBeginner.com
:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 10:33 PM To: Maxim Maletsky Cc: PHP General Mailing List Subject: RE: [PHP] DOCUMENT_ROOT Not to beat a dead horse, but assuming a site structure like this: /htdocs /htdocs/modules /htdocs/includes /htdocs/templates where all my PHP logic scripts

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Dan Lowe
Previously, Jordan Elver said: I'm not using virtual hosts on my local machine but I am on the production machine. What should DOCUMENT_ROOT return? I though it returns the directory of the current script. So if I had a site in /usr/local/apache/htdocs/cha/script.php then I would expect

Re: [PHP] DOCUMENT_ROOT

2001-04-24 Thread Yasuo Ohgaki
If you are using Apache virtual host, it will set virtual host's document root. Is this what you want? Regards, -- Yasuo Ohgaki Jordan Elver [EMAIL PROTECTED] wrote in message 01042417535900.00987@localhost">news:01042417535900.00987@localhost... Hi, Has any got any idea why $DOCUMENT_ROOT

Re: [PHP] $DOCUMENT_ROOT

2001-01-29 Thread CC Zona
In article 039901c08a48$3d4b5740$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Toby Miller") wrote: Whenever I include files in Apache I always do it like this: include($DOCUMENT ROOT."/folder/file.php"); However, now I am doing a site in IIS and I do not have $DOCUMENT ROOT at my disposal.

RE: [PHP] $DOCUMENT_ROOT

2001-01-29 Thread Jonathan Sharp
rware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 EPage: [EMAIL PROTECTED] -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 5:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] $DOCUMENT_ROOT In article 039901c08a48$3d4b5740$[EMAIL PROTECTE