How can I check what directory my script is in? I want to return it and print it out to the web browser..
Sorry for all the q's
Try
<? $current_dir=pwd; ?>
pwd
This will work on Linux. For DOS/Win boxen you might try
<? $current_dir=cd; ?>
cd
but I'm unsure of this...
-Ben
Thanks. I just searched again about found it, at http://www.phpbuilder.com/forum/read.php3?num=2&id=108652&thread=108629. Thanks again!
phpinfo() is very useful for questions like this.