URL and Directory
I must feel dumb but this will be real quick,
I need to get a path to the URL and directory without using any varibles like
What I mean by varibles is define.
Like:
but the php file is in the way of what it is...
All I want it to do is you upload the script in the correct directory and shows info, done!
I must feel dumb but this will be real quick,
I need to get a path to the URL and directory without using any varibles like
PHP:
http://domain.com/directory/
What I mean by varibles is define.
PHP:
$Domain = "http://domain.com";
$Directory = "directory";
Like:
PHP:
$Domain = "http://".$_SERVER["HTTP_HOST"]."".$_SERVER["REQUEST_URI"]."";
but the php file is in the way of what it is...
All I want it to do is you upload the script in the correct directory and shows info, done!




