Re: Dir Help PLEASE
| From: | Philip Olson | Date: | Fri, 12 Jan 2001 07:33:03 +0000 |
| Subject: | Re: Dir Help PLEASE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34216@lists.php.net to get a copy of this message | ||
> how do I give something the filepath of a folder that proceeded it?
Not sure exactly what you mean here but consider
getcwd()
http://www.php.net/manual/function.getcwd.php
This "gets the current working directory" and may help your quest. If you
want something else, load up phpinfo() and have a look at the
available 'predefined variables' on server, there are many.
http://www.php.net/manual/language.variables.predefined.php
ANd if it needs to be taken apart, explode() it. Oh, there is another
function that may actually be what you want, it is called dirname :
http://php.net/manual/function.dirname.php
Maybe if you stick getcwd in it it'll provide desired results. So many
options, so little time, so many words, so unsure what you're wanting :-)
Look around here :
http://php.net/manual/ref.filesystem.php
Sorry this post is getting HUGE.
Good luck!
Philip
be outside the box.