File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is any PHP server var that gives url of home page without the webpage.php file name

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
Linux PHP Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4549
8
Java Netbeans IDE Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
jQuery PHP Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic