Re: [PHP] Re: how to retrieve path to web server files
this could be handy for you: print_r($_SERVER); or phpinfo(); On Tue, Sep 28, 2004 at 04:15:39PM -0400, GH wrote: > does that work for sub directories ... i.e. I have multiple "mini" > sites that I run on my domain and they are just folders underneath... > > I.E. mydom.com > --- mydom.com/123 > --- mydom.com/ahr > --- mydom.com/subsite4 > > > > > On Sat, 25 Sep 2004 14:17:50 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > > $base_dir = $_SERVER['document_root'] > > > > > > On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > > > $path = getcwd(); > > > > > > > > > > > > Amc wrote: > > > > > Hi, > > > > > > > > > > How can I get the string that is the path to the directories on my web > > > > > server? I need to upload some files, but don't know what to supply for the > > > > > destination path. In asp I used server.mappath, but I'm new to php. > > > > > > > > > > Thanks, > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > -- > > > << > > > Jasper Howard - Database Administration > > > ApexEleven.com > > > 530 559 0107 > > > --->> > > > > > > > -- > > > > > > << > > Jasper Howard - Database Administration > > ApexEleven.com > > 530 559 0107 > > --->> > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Maciek Ruckgaber Bielecki "The foundation of morality should not be made dependent on myth nor tied to any authority lest doubt about the myth or about the legitimacy of the authority imperil the foundation of sound judgment and action." --Albert Einstein-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how to retrieve path to web server files
does that work for sub directories ... i.e. I have multiple "mini" sites that I run on my domain and they are just folders underneath... I.E. mydom.com --- mydom.com/123 --- mydom.com/ahr --- mydom.com/subsite4 On Sat, 25 Sep 2004 14:17:50 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > $base_dir = $_SERVER['document_root'] > > > On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > > > > > > On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > > $path = getcwd(); > > > > > > > > > Amc wrote: > > > > Hi, > > > > > > > > How can I get the string that is the path to the directories on my web > > > > server? I need to upload some files, but don't know what to supply for the > > > > destination path. In asp I used server.mappath, but I'm new to php. > > > > > > > > Thanks, > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > -- > > << > > Jasper Howard - Database Administration > > ApexEleven.com > > 530 559 0107 > > --->> > > > > -- > > > << > Jasper Howard - Database Administration > ApexEleven.com > 530 559 0107 > --->> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how to retrieve path to web server files
$base_dir = $_SERVER['document_root'] On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > > > On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > $path = getcwd(); > > > > > > Amc wrote: > > > Hi, > > > > > > How can I get the string that is the path to the directories on my web > > > server? I need to upload some files, but don't know what to supply for the > > > destination path. In asp I used server.mappath, but I'm new to php. > > > > > > Thanks, > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > << > Jasper Howard - Database Administration > ApexEleven.com > 530 559 0107 > --->> > -- << Jasper Howard - Database Administration ApexEleven.com 530 559 0107 --->> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how to retrieve path to web server files
On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > $path = getcwd(); > > > Amc wrote: > > Hi, > > > > How can I get the string that is the path to the directories on my web > > server? I need to upload some files, but don't know what to supply for the > > destination path. In asp I used server.mappath, but I'm new to php. > > > > Thanks, > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- << Jasper Howard - Database Administration ApexEleven.com 530 559 0107 --->> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php