I'm looking for a method that would be able to extract the user's true
document root (e.g. /home/jeremy/public_html/) so that I can use it for
some filesystem scanning functions. I'm trying to avoid hard-coding
supported document roots in favor of being able to dynamically detect
it, but
Jeremy Privett wrote:
I'm looking for a method that would be able to extract the user's true
document root (e.g. /home/jeremy/public_html/) so that I can use it for
some filesystem scanning functions. I'm trying to avoid hard-coding
supported document roots in favor of being able to
07:14:22 AM -0600
From: Jeremy Privett [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Getting The Document Root
I'm looking for a method that would be able to extract the user's
true document root (e.g. /home/jeremy/public_html/) so that I can
use it for some filesystem scanning
Jeremy Privett wrote:
No, what I'm looking for is the root of the document root, if that makes
any sense.
not at all ^_^
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
No, what I'm looking for is the root of the document root, if
that makes
any sense.
How about $_SERVER['DOCUMENT_ROOT']?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
George Pitcher wrote:
Jeremy,
I think I lead you down the wrong path with my last reply.
have a look at $_ENV['ORIG_PATH_TRANSLATED'] which, on my WinXP Apache2 box
gives 'C:\Apache\Apache2\htdocs\testsite\phpinfo.php'.
Is that what you are after?
George
I think my original message may
Jeremy Privett wrote:
George Pitcher wrote:
Jeremy,
I think I lead you down the wrong path with my last reply.
have a look at $_ENV['ORIG_PATH_TRANSLATED'] which, on my WinXP
Apache2 box
gives 'C:\Apache\Apache2\htdocs\testsite\phpinfo.php'.
Is that what you are after?
George
I think
John Nichel wrote:
$_SERVER['DOCUMENT_ROOT']
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains
/home/jeremy/public_html/test/ ... All I want is to the public_html part.
--
Jeremy Privett [
you could try pathinfo()
http://us3.php.net/pathinfo
On Feb 2, 2006, at 8:59 AM, Jeremy Privett wrote:
John Nichel wrote:
$_SERVER['DOCUMENT_ROOT']
http://www.php.net/manual/en/
reserved.variables.php#reserved.variables.server
Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT']
Jeremy Privett wrote:
John Nichel wrote:
$_SERVER['DOCUMENT_ROOT']
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains
/home/jeremy/public_html/test/ ... All I want is to the public_html part.
John Nichel wrote:
Jeremy Privett wrote:
John Nichel wrote:
$_SERVER['DOCUMENT_ROOT']
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains
/home/jeremy/public_html/test/ ... All I want is to
I think my original message may have been confusing. I'll give a
better example:
I have a path: /home/jeremy/public_html/test/test.php
What I want off of the path is just the root of the user's
document root (e.g. where he stores all his publically viewable
files): /home/jeremy/public_html/
On Thu, February 2, 2006 7:14 am, Jeremy Privett wrote:
I'm looking for a method that would be able to extract the user's true
document root (e.g. /home/jeremy/public_html/) so that I can use it
for
some filesystem scanning functions. I'm trying to avoid hard-coding
supported document roots
On Thu, February 2, 2006 9:59 am, Jeremy Privett wrote:
John Nichel wrote:
$_SERVER['DOCUMENT_ROOT']
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains
/home/jeremy/public_html/test/ ... All I
14 matches
Mail list logo