If my web application is in D:/project/proj1

  1. How do I get the the server path in my coding? In ASP, it is server.mappath , and it will return me D:/project/proj1.

  2. And is it possible to get the application name in php? In this example, the application name is proj1.

    Add this line to the top of your file, and look for a variable that suits your needs:

    print_r($_SERVER)
      Write a Reply...