[nycphp-talk] How do you do the equivalent of $PHP_SELF for PHP scripts not in docroot?
Joel De Gan
joel at tagword.com
Tue May 18 17:31:15 EDT 2004
On Tue, 2004-05-18 at 15:43, Phillip Powell wrote:
> I can easily write config.php, however, my knowledge of "define" comes
> from the PHP manual, and I see nowhere where it states that anything in
> define() is in a persistent state. If I run "config.php", I lose all of
> my defined constants, don't I? And when I go to "index.php" via
> browser, how would it know how to go to config.php if config.php would
> have to reside outside of the docroot?
>
> Again I'm probably overcomplicating this but I can't honestly follow
> your train of logic, though I want to.
just try it.
if you want to know all your defined constants try the following in a
script.
echo "<pre>\n";
print_r($GLOBALS);
joeldg - developer, Intercosmos media group.
http://lucifer.intercosmos.net
More information about the talk
mailing list