Hi all,

 I want to get the URL of my application (and don't want to define it in a
config file - I don't like telling my customers to config the app, even run
some install.php file). Anyone has code for this? I know that in generally I
cannot use a PHP function for this because we don't have true "PHP web
applications" (like Java-based web applications) ( and most of the PHP
applications define constants, like APP_BASE_URL,...). But I guess if I put
a special file (like "APP_ROOT") in my base application directory, I can
find out the application URL from the URL of the requested file and file
path of the requested file (The code for determining URL can be put in
another PHP file and be included). Anyone have code like this? Please help
me. Thanks in advance.

 Thai

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to