You are using a browser which is not compatible with CSS (for more information, see Tara's tutorial).
Because of this, it is possible that our website may not appear
correctly in your browser. We apologise for the inconvenience, and
recommend you upgrade your browser to one which is compatible with CSS.
For more information, please visit our Browser Upgrade page.
This script will output the path to your base directory (aka "Document Root"), which often needs to be used in Perl & PHP scripts.
<?php ########################################################################### # # # Neither http://www.4webhelp.net/ nor its members accept any # # responsibility, either expressed or implied, for any damage caused by # # using this script or the misuse of this script. # # # # # # INSTRUCTIONS # # # # 1) Copy this code to an editor such as Notepad and save it with a # # .php extension. # # 2) FTP this file to a folder on your site in ASCII mode # # 3) Call up this file in your web browser to see your document root # # # ########################################################################### print ($_SERVER['DOCUMENT_ROOT']); ?> <p>This script courtesy of <a href="http://www.4webhelp.net/">4WebHelp</a>.</p>
That prints the current working dir. and always works...
THANKS!
register_globals is off by default since PHP 4.2.0 due to the potencial risk of variable poisoning.
Add a new comment