| Author |
is any PHP server var that gives url of home page without the webpage.php file name
|
Leonidas Savvides
Ranch Hand
Joined: Jan 31, 2010
Posts: 397
|
|
is any PHP SERVER Var that gives url of home page without the webpage.php file name?
eg. http://www.ffff.com/ggg/index.php to give "www.ffff.com/ggg/"??? this want for testing so NOT? have to change url during debugging/testing...well?
|
 |
Nick Charles
Ranch Hand
Joined: Oct 09, 2011
Posts: 56
|
|
The various data provided by $_SERVER variable should enable you to construct the value you want:
http://www.php.net/manual/en/reserved.variables.server.php
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3791
|
|
|
If you add a phpinfo() call to a page, one of the things it prints out is a complete list of all the $_SERVER variables that are being set and their values. You should be able to work out from there which one gives you the information you need.
|
 |
Jared Drake
Greenhorn
Joined: Aug 26, 2012
Posts: 5
|
|
|
You are most definitely looking for PHP info. Check out http://php.net/manual/en/function.phpinfo.php for a list of all of phpinfo's constants.
|
I am a writer for Web Programming Tutorial and Reference
|
 |
 |
|
|
subject: is any PHP server var that gives url of home page without the webpage.php file name
|
|
|